Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] followed by DELETE_FAILED_INTERNAL_ERROR

☆樱花仙子☆ 提交于 2019-12-07 06:11:58

问题


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!


回答1:


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




回答2:


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

You can check in Settings>>Apps




回答3:


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.




回答4:


For someone facing this issue on MI / Xiaomi Phones, the solution is as follows:

Step 1: Check if installation from unknown sources is enabled:

Go to Settings-> Additional settings-> Privacy-> Unknown sources

Step 2: Goto "Developer options", then enable "Verify apps over USB" in Debugging section.

Step 3: In the "Developer options" itself, enable "Install via USB" option.

If above all the options are in place and if you are still not able to install the app:

Step 4: Settings --> Additional settings --> Developer options --> Turn Off MIUI optimization Disable this option, a dialog will pop-up to restart the device and apply changes.




回答5:


May be MI users are facing these problems
Just go to Settings -> Mi Account
Create a Mi Account.
Then go to Developers options -> Install via USB (Tick it or enable it)
there you go. Hope it helps!!!



来源:https://stackoverflow.com/questions/34381853/failure-install-failed-update-incompatible-followed-by-delete-failed-internal

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!