My Android test App failed to install with INSTALL_FAILED_CONFLICTING_PROVIDER

This is most likely caused by a known provider conflict issue found in Google Play Services 8.3:

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" />
 
Have more questions? Submit a request

0 Comments

Article is closed for comments.