INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

后端 未结 3 1783
余生分开走
余生分开走 2020-12-11 08:01

I tried everything, renaming the package, changing the permissions etc, still i see the error INSTALL_PARSE_FAILED_MANIFEST_MALFORMED on my console.

I tried logging

相关标签:
3条回答
  • 2020-12-11 08:28

    Your package name has a capital letter in it. Try refactoring your package so that all the letters are lowercase. To do this, in the panel for your project, make sure you're in Android view mode, then click the gear that is a little to the right of the view indicator, then make sure compact empty middle packages is unchecked. Next, right click on your package with a capital letter in it and select refactor -> rename. Change it to have a lower case, double check your AndroidManifest.xml is now a lower case, if not, manually edit it.

    0 讨论(0)
  • 2020-12-11 08:33

    if you are trying to add .9.png files to your app , you need to define your xml file source in your main activity meta-data part as an android resource , this solved my problem:

         <meta-data
                   android:name="com.google.android.actions
           //add this line
                   android:resource="@drawable/sample_button 
           //(here sample_button is the name of your xml file in the drawable folder)"
            />
    
    0 讨论(0)
  • 2020-12-11 08:37

    There is more than one problem as RC. and I found out.

    • Change all your package names to lowercase
    • Update the <meta-data> attribute to have a valid value.

    Correct code for the meta data:

    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />
    

    Sources:

    • Google Play Services v13 error meta-data in AndroidManifest
    • Why should java package name be lowercase?
    0 讨论(0)
提交回复
热议问题