-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[INSTALL_FAILED_CONFLICTING_PROVIDER] #320
Comments
Is the app that you are seeing the error with already on the device? If so first uninstall and then try again. |
I have two different apps and have to install the both app on the same device. if I remove the app 1 then app 2 is install easily but if app 1 is exists in the device then app 2 not installed showing the error |
What version of the plugin are you using? I've seen this issue before but in my case I already had the app that was causing the issue installed on the device. Uninstalling first was enough to fix for me. Also what other plugins are you using? |
I am using plugin version 1.4.2 in cordova 5.3.3. |
Can you try uninstalling all old versions of any apps with the plugin from your device. And then try to install your two apps again. |
Yes, I have tried. but no luck |
Are you able to show me the AndroidManifest.xml files from the two projects? |
Yes, Please see the attached https://drive.google.com/file/d/0B9yxq8hJMPKiVFM2and6QUFQdHc/view?usp=sharing |
Yes, Please download from the below mentioned url |
They look fine? I'm at a loss on this one I'm afraid. Are you sure that there are no other apps installed on your device that might have similar package name? Could you try creating two new apps that have completely different package names com.mytestpackage and com.someotherpackage for example? Just to see if you can get them to install. I can confirm that this plugin works with multiple apps. I have at least three of my apps using this plugin installed on my device. Both debug builds and installs from the play store. The times I've seen this issue the app was already on the device (usually a debug build) so uninstalling fixed it for me. |
I already have tried this, But will try again. |
I also found this https://code.google.com/p/android/issues/detail?id=189079 basically they are saying that another app has declared the same provider authorities as google play services and this is causing the issue. I'm not sure if this is the case here but have you tried installing your two apps on a different device or even on the emulator? |
Might be worth trying to rename the classes registered as providers/listeners, if that's the case, @smdvdsn . |
I have tried to install both apps in more than 4 devices. But every time same error occured |
What version of play services do you have installed? Could this be your issue? https://code.google.com/p/analytics-issues/issues/detail?id=784 edit: Actually that issue is related to analytics not GCM so probably not your exact issue. I'll leave it here though as it could help you track down your problem. |
I too ran into this same issue. Since using this new plugin, I had to upgrade Google Play Services to a higher version. Because of a change in Google's AndroidManifest.xml (https://code.google.com/p/android/issues/detail?id=193567), it gives INSTALL_FAILED_CONFLICTING_PROVIDER error when installing multiple app on the same device. Simple fix is to add applicationId under defaultConfig in build.gradle. Hope this helps. |
@suspiration Thanks, that is very valuable information. I'll have to see if we can automate it. |
@macdonst Perhaps this would be better in Cordova Android core project. I imagine that any plugin using play framework could have this issue. |
@smdvdsn sorry, what do you mean? Adding play services to Android core? |
@macdonst sorry no I mean we should suggest that cordova android add the applicationId property to the default build.gradle |
@suspiration Thanks for your help. I have just added applicationid in the build.gradle under defaultconfig and both app work perfectly. |
I had this problem and had to roll back to phonegap-plugin-push 1.3.0 in order to solve error. This is with cordova 5.4.0 btw |
Re-opening this as it really needs to get fixed either by this plugin or cordova-android. |
I've automated this with |
Hi, Thanks. |
I was experiencing this issue until I updated cordova. You can also explicitly set the |
Thanks @ericb , |
This is still a problem using the adobe online build system. It isn't clear how to resolve this. |
Looks like this is fixed in CB-10014 and a corresponding commit. We could get do away with the commit. This commit is causing the plugins to be unusable with react-native-cordova-plugin. The fundamental issue is that ReactNative includes plugins as libraries, while Cordova simply changes build files to make plugins a part of the main project. A library cannot have an A library cannot really set an applicationID |
i have added Zopim sdk in build.gradle, I m getting "Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]" , |
This thread has been automatically locked. |
Hi,
I have installed this plugin in the two different apps, apps are working fine in different devices. But if we try to install the both app on the single device then it shown the below mentioned url.
Please help me to resolve this issue.
ERROR: Failed to launch application on device: ERROR: Failed to install apk to d
evice: pkg: /data/local/tmp/android-debug.apk
Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]
The text was updated successfully, but these errors were encountered: