Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] followed by DELETE_FAILED_INTERNAL_ERROR

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!

like image 723
Sharonas Ykm Avatar asked Dec 20 '15 14:12

Sharonas Ykm


3 Answers

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

like image 99
Yaron Recher Avatar answered Nov 03 '22 21:11

Yaron Recher


It may be installed with different signature. You need to uninstall previous app.

You can check in Settings>>Apps

like image 25
Mobile Apps Expert Avatar answered Nov 03 '22 21:11

Mobile Apps Expert


UNINSTALL your app manually from device or run below command in adb command line

adb uninstall com.app.app

And try again to run your app.See this get more idea.

like image 35
pRaNaY Avatar answered Nov 03 '22 21:11

pRaNaY