This is most likely caused by a known provider conflict issue found in Google Play Services 8.3:
- https://code.google.com/p/analytics-issues/issues/detail?id=784
- http://tools.android.com/tech-docs/new-build-system/applicationid-vs-packagename
- http://tools.android.com/tech-docs/tools-attributes
Solution is to add your applicationId to defaultConfig in your build.gradle if not already there
defaultConfig {
applicationId "com.extremepush.example"
minSdkVersion 10
}
Add the tools namespace to your Android Manifest if not already there
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
.....
xmlns:tools="http://schemas.android.com/tools">
And then add a new provider for GMS in you Android manifest as shown below:
<!--
Fix INSTALL_FAILED_CONFLICTING_PROVIDER caused by play services 8.3
-->
<provider
tools:replace="android:authorities"
android:name="com.google.android.gms.measurement.AppMeasurementContentProvider"
android:authorities="${applicationId}.google_measurement_service"
android:exported="false" />
Comments
0 comments
Article is closed for comments.