Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] followed by DELETE_FAILED_INTERNAL_ERROR

Sharonas Ykm picture Sharonas Ykm · Dec 20, 2015 · Viewed 11.9k times · Source

When im trying to run app on nexus5 device, android studio open error window that says "installation failed with message INSTALL_FAILED_CONFLICTING_PROVIDER" and than im asked if i want to uninstall existing application even if it doesnt exist on the device. also, the run window shows "Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]"

when click ok i get on the run window :

"DEVICE SHELL COMMAND: pm uninstall com.app.app DELETE_FAILED_INTERNAL_ERROR"

thank you for your help!

Answer

Yaron Recher picture Yaron Recher · Dec 20, 2015

I noticed that when using Marshmallow (Android 6.0+) there is a problem with the new "com.google.android.gms" play services version 8.3.0 . I would recommend using the 8.1.0 version - that solved the problem in my case.

for example:

dependencies {
        compile fileTree(include: ['*.jar'], dir: 'libs')
        compile 'com.google.android.gms:play-services-gcm:8.3.0'
}

Need to be changed to:

dependencies {
            compile fileTree(include: ['*.jar'], dir: 'libs')
            compile 'com.google.android.gms:play-services-gcm:8.1.0'
    }

In the build.gradle file