0

I have implemented a library project which has GMS play-services dependency, and I use GCM, Google Cloud Messaging to receive notifications.

This library is a part of another android project which I can override properties, add custom code and then build android applications.

Everything is fine as far as I install one app built with a specific packageName, but if I change the packageName, rebuild and install the second app on the same device, I got the error INSTALL_FAILED_CONFLICTING_PROVIDER during the installation execution.

Removing GMS play-services dependency resolve the installation issue.

My question is how should I handle that ?

Can I specify the authorities for providers coming from GMS libraries ? Make something uniq for the built apk ?

Thank you

reaper
  • 398
  • 3
  • 15
  • Yes, when I write changing the packageName, I mean in the AndroidManifest xml file – reaper Oct 29 '15 at 13:39
  • Oh, it's not clear. The library has a specific package name and I have an android project repository which includes this library and which I can override properties. I will rectify that in the top description. – reaper Oct 29 '15 at 13:44
  • You might use the package name that has conflict, eg you cannot use the `com.google.*` `android:authorities` must be unique. For more info please refer to [here](http://stackoverflow.com/questions/16267785/install-shows-error-in-console-install-failed-conflicting-provider). – bjiang Oct 29 '15 at 17:31
  • Related: https://code.google.com/p/android/issues/detail?id=189079 – cygery Oct 30 '15 at 08:01

0 Answers0