0
当我通过Android Studio在手机上运行应用程序时,出现以下错误。Android:安装失败并显示消息INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
我已经检查,没有任何版本的应用程序安装在任何我的手机上的用户帐户的。我的build.gradle文件包含defaultConfig.applicationId = "com.fyp.agripoint"
这里是的AndroidManifest.xml文件
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.fyp.agripoint">
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="AgriPointApp"
android:supportsRtl="true">
<activity
android:name=".MainActivity"
android:theme="@style/AppChildTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".buysell.MainActivityMap"
android:theme="@style/AppChildTheme">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".MainActivity" />
</activity>
<activity
android:name=".calendar.MainActivityCalendar"
android:theme="@style/AppChildTheme">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".MainActivity" />
</activity>
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />
<service
android:name=".location.LocationService"
android:enabled="true"
android:exported="true" />
<service
android:name=".location.test"
android:enabled="true"
android:exported="true" />
<activity
android:name=".mandi.MandiRateActivity"
android:theme="@style/AppChildTheme" />
<meta-data
android:name="io.fabric.ApiKey"
android:value="my_key" />
<activity
android:name=".profile.ProfileActivity"
android:theme="@style/AppChildTheme" />
<activity
android:name=".profile.PrefsActivity"
android:theme="@style/AppChildTheme" />
<activity
android:name=".profile.EditProfileActivity"
android:theme="@style/AppChildTheme" />
<activity
android:name=".events.MainActivityEvent"
android:theme="@style/AppChildTheme" />
<receiver
android:name=".events.AlarmReceiver"
android:process="remote" />
<service
android:name=".events.NotificationService"
android:enabled="true"
android:exported="true" />
<activity
android:name=".articles.MainActivityArticles"
android:theme="@style/AppChildTheme" />
<activity
android:name=".articles.ArticleDetail"
android:theme="@style/AppChildTheme" />
</application>
</manifest>
当没有安装在设备上的另一个应用程序,你只是改变了清单文件,并试图将其推[敏捷不正确通常发生。如果这是android studio中的一个bug,请尝试使用Clean和Rebuild项目,它会自动解决,Hot load有时无法更新缓存中的Dex。 – Vikrant
[在我的Android应用程序中如何修复INSTALL \ _PARSE \ _FAILED \ _MANIFEST \ _MALFORMED]可能的重复(http://stackoverflow.com/questions/12396351/how-to-fix-install-parse-failed-manifest-malformed在我的Android应用程序) – 2017-04-25 08:54:10
@Ashish你连接到的问题不能解决我的问题。我已经尝试了在答案中提到的所有解决方案。 –