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

烈酒焚心 提交于 2019-12-01 00:22:04
JannGabriel

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. ;)

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!