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!
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
It may be installed with different signature. You need to uninstall previous app.
You can check in Settings>>Apps
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With