1

I am working on an android application. Meanwhile i got chance to work on another application similar to first. I have just copy my previous code to new
project.

1) src files

2) res files

3) manifest

4) build.gradle

and then I change packagename from com.abc to com.xyz in

1) build.gradle

2) Manifest

3) src files

Now i have installed first app in my device and try to install second one but it does not work. Same error also occur when i have installed second app and try to install first one.

Here is the error

enter image description here

Is there any other thing i need to change apart from packagename??

Ahlem Jarrar
  • 1,129
  • 1
  • 12
  • 33
Najeeb Idrees
  • 453
  • 6
  • 15

2 Answers2

4

There may be different issues, but try this: go to gradle and change applicationId, another reason could be conflicting of authorithies in apps, refer to these:

Install shows error in console: INSTALL FAILED CONFLICTING PROVIDER

INSTALL_FAILED_CONFLICTING_PROVIDER in Android

http://gradlewhy.ghost.io/overcoming-install-failed-conflicting-provider/

Community
  • 1
  • 1
M. Erfan Mowlaei
  • 1,376
  • 1
  • 14
  • 25
1

I have the same issue in the same case and I solved it by adding applicationId. In my case problem was in permission.MAPS_RECEIVE, I saw that in error logs. So I did next:

AndroidManifest.xml:

<permission
        android:name="${applicationId}.permission.MAPS_RECEIVE"
        android:protectionLevel="signature" />
kkost
  • 3,640
  • 5
  • 41
  • 72