Check Mobile App
Read now
Start a Project

How to fix INSTALL_FAILED_DUPLICATE_PERMISSION issue

Save

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.

 

 

 

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


2 comments

  • Piotr Wosinek
    Tag attribute name has invalid character ‘$’
    • Aman Gupta
      Tag is to filter incoming GCM notifications based on your package name. ‘$’ should be valid here.
      Maybe you have written something wrong in your manifest file. If you share your code snippet then we may solve your problem.
      Thanks.
  • css.php

    Great Product, Great Team, and Great Support Service. And if you want to add more features to the product, they can submit any idea that comes to your mind. They really care about their clients and we are really happy and honored to deal with Webkul.

    Osama
    Talk to Sales

    Global

    Live Chat
    Start a Project

      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home