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你連接到的問題不能解決我的問題。我已經嘗試了在答案中提到的所有解決方案。 –