2017-04-25 8 views
0

Android Studio経由で携帯電話でアプリケーションを実行すると、次のエラーが発生します。Android:メッセージでインストールできませんでしたINSTALL_PARSE_FAILED_MANIFEST_MALFORMED

Error Popup

私がチェックして、自分の携帯電話上のユーザーアカウントのいずれかにインストールされているこのアプリのないバージョンがありません。マイ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> 
+0

を別のアプリケーションデバイスにインストールし、あなただけのマニフェストファイルを変更し、それをプッシュしよう[Dexの間違った]があった場合に一般的に起こります。これがアンドロイドスタジオのバグであれば、自動的に解決されるプロジェクトのクリーンアップと再構築を試してください。ホットロードでキャッシュ内のDexを更新できないことがあります。 – Vikrant

+1

[自分のandroidアプリケーションでINSTALL \ _PARSE \ _FAILED \ _MANIFEST \ _MALFORMEDを修正する方法](http://stackoverflow.com/questions/12396351/how-to-fix-install-parse-failed-manifest-malformed -in-my-android-application) –

+0

@Ashish質問にリンクされている質問は私の問題を解決しません。私はその答えに記載されているすべてのソリューションを試しました。 –

答えて

0

マニフェストに完全なアクティビティ名を指定します。

が常に使用:

www.yourcompany.com.MainActivity 

の代わり:

.MainActivity 
関連する問題