Start a Project

How to fix INSTALL_FAILED_DUPLICATE_PERMISSION issue

In this blog,
I have shown you when to come this issue and how to resolve it.

When to come

This is issue commonly comes in <5.1 version. Means Lollipop or greater version. And if you use the same permission in manifest then error shows,

INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.app.permission.C2D_MESSAGE pkg=com.app

 

How to resolve

We will give the example of GCM permission,

You can use the ${applicationId} on the place of packageName in AndroidManifest.xml file.

Replace

to

And in receiver’s intent-filter:

replace

to

And DUPLICATE_PERMISSION issue will be resolved.

 

 

 

Exit mobile version