How to fix INSTALL_PARSE_FAILED_MANIFEST_MALFORMED in my android application

后端 未结 11 1050
攒了一身酷
攒了一身酷 2020-11-30 09:04

Hi I am trying to experiment with gcm but unable to make it work. Don\'t know where I am messing with it, below is the error I am getting. I am trying to deploy my applicati

相关标签:
11条回答
  • 2020-11-30 09:09

    I met this same issue in android studio

    what solve this is to let company domain to be all small letters,

    0 讨论(0)
  • 2020-11-30 09:15

    try to write activity name follow by "." Instead of

    <activity android:name="MainActivity"
                      android:label="@string/app_name">
    

    use

    <activity android:name=".MainActivity"
                      android:label="@string/app_name">
    
    0 讨论(0)
  • 2020-11-30 09:20

    Change name package with Caps letters to little letters.

    0 讨论(0)
  • 2020-11-30 09:22

    Instead of:

    <permission android:name="android.permission.C2D_MESSAGE" android:protectionLevel="signature"/>
    

    to:

    <uses-permission android:name="android.permission.C2D_MESSAGE" android:protectionLevel="signature"/>
    

    Try that.

    0 讨论(0)
  • 2020-11-30 09:22

    I had this problem. My device memory was full. I solved my problem with freeing device memory.

    0 讨论(0)
  • 2020-11-30 09:27

    There's issue about this: http://code.google.com/p/android/issues/detail?id=37658 Capital letters can't be used in package names within permissions. You got (same as me) into difficult situation when you have deployed application with package name like this and you need to use GCM. I tried to use some kind of short form of permission:

    <permission android:name=".permission.C2D_MESSAGE" android:protectionLevel="signature" />
    <uses-permission android:name=".permission.C2D_MESSAGE" />
    

    I also defined service in the same way. It had to be in application package. It worked on Android 4.3. Probably on 4.2 also. I know that on 4.0.3 it didn't.

    0 讨论(0)
提交回复
热议问题