Android Problems Installation Error:install_failed_conflicting_provider Solutions
Recently do the project encountered installation Error:install_failed_conflicting_provider This error message, I do not know how to solve, Baidu, found that there are friends the same problem and solve, here record, interested friends can see,
Installation Error:install_failed_conflicting_provider
[2014-04-20 20:43:26-army 4-14-1] Installation Error:install_failed_conflicting_provider
[2014-04-20 20:43:26-army 4-14-1] Please check Logcat Output for more details.
[2014-04-20 20:43:26-army 4-14-1] Launch canceled!
Unexpectedly encountered this error, Google was harmonious after. Internet Baidu for a moment, the following solutions:
For reference only
This is mainly due to the existence of a provider with the same name already in the debugging environment.
The workaround is to modify the Androidmanifest.xml in the
<provider android:name= "Applockprovider"
android:authorities= "com.smark.provider.SQ03" >
</ Provider>
The value of the android:authorities will be modified to something else.
2. Go back to see, anroidmanifest.xml inside put android:name authorities inside of write wrong,
[2014-04-20 20:43:26-army 4-14-1] Installation Error:install_failed_conflicting_provider
[2014-04-20 20:43:26-army 4-14-1] Please check Logcat Output for more details.
[2014-04-20 20:43:26-army 4-14-1] Launch canceled!
Obviously, an error occurred: install_failed_update_incompatible
Google ...
Find the reason: there is a problem, with the previous provider conflict occurred. It will be all right after the change.
<provider
android:authorities= "Cn.marsXTU.appprovider"
android:name= " Cn.marsXTU.provider.AppProvider ">
</provider>
[2014-04-20 20:46:41-army 4-14-1]------------------------------[2014-04-20 20:46:41
-Army 4-14-1] Android launch!
[2014-04-20 20:46:41-army 4-14-1] adb is running normally. [2014-04-20 20:46:41-army 4-14-1] Performing cn.marsXTU.ui.SplashActivity activity launch [2014-04-20 20:46:41-army 4-14-1] Automatic Target mode:using E xisting emulator ' emulator-5554 ' running compatible AVD ' 520 ' [2014-04-20 20:46:41-army 4-14-1] uploading Army 4-14-1.ap
K onto device ' emulator-5554 ' [2014-04-20 20:47:07-army 4-14-1] Installing Army ... [2014-04-20 20:47:21-army 4-14-1]
success! [2014-04-20 20:47:21-army 4-14-1] Starting activity cn.marsXTU.ui.SplashActivity on device emulator-5554 [2014-04-20 20:47:25-army 4-14-1] Activitymanage r:starting:intent {act=android.intent.action.main cat= [Android.intent.category.LAUNCHER] Cmp=cn.marsxtu/.ui. Splashactivity}
When you repeatedly install Android APK, you may encounter a ADB install error that reads:
Failure[install_failed_update_incompatible]
This is probably because you did not do it thoroughly in the previous uninstall application, but simply rm/data/app/the following apk file, a remedial method is as follows:
Start the simulator, and then go to the menu
Settings->applications->mange
applications-> Select the Application->select "Unistall".
So that you can completely remove it, and then reinstall the APK, no problem.
Another option is to delete the corresponding information in the/data/system/packages.xml, restart the emulator and install it, because after the ADB install, it will be added to the Packages.xml
The appropriate program information.
There are several ways to uninstall:
1) Elegant: through the interface Settings-->applications-->manage applications--> to find the application of-->application info--> Uninstall will be able to uninstall the application normally.
2 Rough type directly to the/data/app directory to delete apk
adb shell
Cd/data/app
RM xxx.apk
This method is not recommended, only deleted APK, if the application has other directories, such as the database directory/data/data/xxx/databases/did not clean up, leaving a hidden danger.
3) Hidden type:
adb Uninstall Package-name (This is not stated in the ADB's help document, but can be used)
What, don't know package-name? Look at what you have in your androidmanifest.xml that is package, which specifies Package-name.
Thank you for reading, I hope to help you, thank you for your support for this site!