Can I remove this permission? (It cause INSTALL_FAILED_DUPLICATE_PERMISSION in Android 5.0 device)

前端 未结 3 1935
时光说笑
时光说笑 2021-01-07 02:33

My tester said that he couldn\'t install the app from Play Store to his Nexus 5 (Lollipop). He said he got this error

Unknown error code during application i         


        
相关标签:
3条回答
  • 2021-01-07 02:43

    Change your package name to some other package name, instead of deleting that permissions.

    package="com.example.gcm" 
    

    to

    package="com.appname"  //use any name here like your app name or company name
    
    0 讨论(0)
  • 2021-01-07 02:56

    Android 5.0. You have Multi-User, so You must Uninstall for all Users Following steps:

    After Uninstalling App. You may found that Your app name in Apps List of Downloaded Tab.

    Go to Settings->Apps. At bottom of list you found YourApp with "NOT INSTALLED" Tag -> Open -> Click on Option Menu and Select "Uninstall for all Users".

    After that process you successfully install new app and running well.

    0 讨论(0)
  • 2021-01-07 03:04

    As described in INSTALL_FAILED_DUPLICATE_PERMISSION... C2D_MESSAGE , you should use ${applicationId} instead a static application id in the AndroidManifest.

    Example:

    <uses-permission android:name="${applicationId}.permission.C2D_MESSAGE"/>
    

    It will fix your problem and if you starting using Flavor everything will work perfectly too. ;)

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