Obsolete
Status Update
Comments
ra...@gmail.com <ra...@gmail.com> #2
As a workaround we added the following to our own manifest:
<provider
tools:replace="android:authorities"
android:name="com.google.android.gms.measurement.AppMeasurementContentProvider"
android:authorities="${applicationId}.google_measurement_service"
android:exported="false" />
You must have tools namespace defined in the xml.
<provider
tools:replace="android:authorities"
android:name="com.google.android.gms.measurement.AppMeasurementContentProvider"
android:authorities="${applicationId}.google_measurement_service"
android:exported="false" />
You must have tools namespace defined in the xml.
[Deleted User] <[Deleted User]> #3
I've also been affected by this!
ra...@gmail.com <ra...@gmail.com> #4
@2 I also opened an issue with tools guys https://code.google.com/p/android/issues/detail?id=193567 . I'm not really sure which team should fix it. There's another workaround there that in my opinion is cleaner.
me...@bnaya.net <me...@bnaya.net> #5
I've added
android {
defaultConfig.applicationId = "my.package.id "
}
to my gradle file and it fixed that issue for me
android {
defaultConfig.applicationId = "
}
to my gradle file and it fixed that issue for me
jo...@onesignal.com <jo...@onesignal.com> #6
Setting android.defaultConfig.applicationId in your gradle file is something that is expected to be set in Android projects. This is automatically added when you create a new Android project in Android Studio.
However when applicationId isn't present in the project gradle the play-services-measurement AAR package in its AndroidManifest.xml gets defaulted in. This creates a silent issue for the app developer as their is no warnings or errors when the app builds. Only after another app that was build the same way is also installed on the device is the issue known as the OP noted with the INSTALL_FAILED_CONFLICTING_PROVIDER error.
The fix is adding android.defaultConfig.applicationId to your app's gradle file as others have noted however, the play-services-measurement AAR or the build tools should be changed to throw an error if this is missing.
However when applicationId isn't present in the project gradle the play-services-measurement AAR package in its AndroidManifest.xml gets defaulted in. This creates a silent issue for the app developer as their is no warnings or errors when the app builds. Only after another app that was build the same way is also installed on the device is the issue known as the OP noted with the INSTALL_FAILED_CONFLICTING_PROVIDER error.
The fix is adding android.defaultConfig.applicationId to your app's gradle file as others have noted however, the play-services-measurement AAR or the build tools should be changed to throw an error if this is missing.
me...@bnaya.net <me...@bnaya.net> #7
In cordova generated projects android.defaultConfig.applicationId is missing
jo...@onesignal.com <jo...@onesignal.com> #8
I have already opened an issue with Cordova on this not being adding by default and have provided a work around to set android.defaultConfig.applicationId in the comments until Cordova fixes this.
https://issues.apache.org/jira/browse/CB-10014
[Deleted User] <[Deleted User]> #9
Thanks for the solution in #4 - that worked for me!
lb...@gmail.com <lb...@gmail.com> #10
Are these apps successfully uploading to the play store? And users of the apps are seeing this error?
I'm wondering if the play store checks for authorities uniqueness to ensure this doesn't happen on a wide scale.
I'm wondering if the play store checks for authorities uniqueness to ensure this doesn't happen on a wide scale.
ni...@gmail.com <ni...@gmail.com> #11
#4 did the trick.
ni...@gmail.com <ni...@gmail.com> #12
The users only see an errormessage with code 505, an errormessage that is given for other installation-failures as well.
[Deleted User] <[Deleted User]> #13
Error persists in Google Play Services version 8.4.89 (2428711-230).
Two apps I use are in conflict as described above in original post.
RadPad and Glassdoor.
Uninstall one, the other will install.
Any workaround for us users?
Two apps I use are in conflict as described above in original post.
RadPad and Glassdoor.
Uninstall one, the other will install.
Any workaround for us users?
me...@bnaya.net <me...@bnaya.net> #14
#12, You can try using older version and send feedback to the developers and hope they will fix it fast
so...@gmail.com <so...@gmail.com> #15
#4 is the perfect solution, you saved my day!
ns...@gmail.com <ns...@gmail.com> #16
I'm desperately requesting your help.
I'm having some users complaining about Play Store Error 505.
I cannot apply solution #4 because my project is a library project, so I'm getting: "Error: Library projects cannot set applicationId."
My app is currently using Play Services 8.3.0. Does anyone know what else I can try? Thanks in advance!
I'm having some users complaining about Play Store Error 505.
I cannot apply solution #4 because my project is a library project, so I'm getting: "Error: Library projects cannot set applicationId."
My app is currently using Play Services 8.3.0. Does anyone know what else I can try? Thanks in advance!
me...@bnaya.net <me...@bnaya.net> #17
#15, who is using your library? he should set the app id.
Do you declare authority provider in your lib?
Do you declare authority provider in your lib?
ns...@gmail.com <ns...@gmail.com> #18
I could reproduce and fix this issue. This is referred in the following thread:
https://goo.gl/UvjIVk
Good luck & thank you.
Good luck & thank you.
al...@gmail.com <al...@gmail.com> #19
There's no gradle support in Intel-XDK yet, due to security issues. Is there another way around to solve this problem without gradle?
Many thanks,
Many thanks,
ti...@google.com <ti...@google.com>
ti...@google.com <ti...@google.com>
mo...@gmail.com <mo...@gmail.com> #20
#18, you probably solved it already, but if someone else will read it, there is a solution for the issue with Intel-XDK, in https://software.intel.com/en-us/forums/intel-xdk/topic/607293 .
There is a special branch of the Pushwoosh plugin, to be used with Intel XDK (see Paul F answer)
There is a special branch of the Pushwoosh plugin, to be used with Intel XDK (see Paul F answer)
re...@gmail.com <re...@gmail.com> #21
Currently affecting Dashlane Beta and Crunchyroll for example. Can only have one of them installed :(
ti...@gmail.com <ti...@gmail.com> #22
I look in to it see who or witch team can do that
vo...@gmail.com <vo...@gmail.com> #23
Others are reporting that system apps on devices from LG and HTC also conflict. See https://groups.google.com/d/topic/dashlane-beta-channel/eC0yyivtxEg/discussion
Among others, the following apps are known to exhibit this issue:
* LG's NLP helper
* HTC Push Services
* Dashlane
* Crunchyroll
* Groundlink
This should be fixed at the framework level. Some projects have patched their Gradle configs to work around this problem, but others (notably Dashlane) stubbornly insist that it is a Google problem and not their responsibility to fix, despite the availability of simple workarounds.
Among others, the following apps are known to exhibit this issue:
* LG's NLP helper
* HTC Push Services
* Dashlane
* Crunchyroll
* Groundlink
This should be fixed at the framework level. Some projects have patched their Gradle configs to work around this problem, but others (notably Dashlane) stubbornly insist that it is a Google problem and not their responsibility to fix, despite the availability of simple workarounds.
wb...@gmail.com <wb...@gmail.com> #24
[Comment deleted]
ti...@google.com <ti...@google.com> #25
Closing issue due to inactivity. Please comment if assistance is still needed for this issue.
so...@gmail.com <so...@gmail.com> #26
no success on that issue :(
th...@gmail.com <th...@gmail.com> #27
any luck?
Description
Google Play Services 8.3.0
Issue summary:
It seems that a new Provider has been added in 8.3.0 (AppMeasurementContentProvider) unfortunately the authorities field in the generated AndroidManifest.xml is not unique therefore apps can't be installed/updated due to INSTALL_FAILED_CONFLICTING_PROVIDER error.
Your AndroidManifest file (as seen in <project_folder>/build/intermediates/exploded-aar/com.google.android.gms/play-services-measurement/8.3.0/AndroidManifest.xml) contains the following provider definition:
<provider
android:authorities="${applicationId}.google_measurement_service"
android:name="com.google.android.gms.measurement.AppMeasurementContentProvider"
android:exported="false"/>
When we build the project we get the following result in the merged <project_folder>/build/intermediates/manifests/full/prod/release/AndroidManifest.xml
<provider
android:name="com.google.android.gms.measurement.AppMeasurementContentProvider"
android:authorities="com.google.android.gms.measurement.google_measurement_service"
android:exported="false" />
As you can see the authorities is not unique to our app.