Re-installation failed due to different application signatures.
You must perform a full uninstall of the application. Warning: This will remove the Application Data!
Please execute 'adb uninstall com. example. Android. APIs 'in a shell.
Launch canceled!
Android requires all applicationsProgramMust be signed, as described in your application signature. The apidemos application is included in the SDK and preinstalled on the simulator. Therefore, the barcode has been compiled and signed with a private key.
If you want to run or modify any apidemo apps in Eclipse/ADT or other ide, all you have to do is uninstall the app through the simulator.Pre-InstallationApp version. If you try to run apidemos apps in your ide before uninstalling the pre-installed version, you will get an error message similar to the above:
This error occurs because, in this example, you try to install a copy version of apidemos on the simulator, this copy has a signature for different certificates (the android ide tool uses a debug certificate to sign the app, and the current version has been signed by a private certificate ). The system does not allow this type of re-installation process.
To solve this problem, you need to completely uninstall the pre-installed version and then reinstall it using the ADB tool. The following shows how to do this:
I:Start the simulator first.
II: Start->Run-> Cmd
Iii. AccessAndoridsdkThe followingToolsDirectory
IV:ADB Shell
V:CD
Data
VI:CD
App
7:Ls (Description: it is mainly for files that do not know the package, and can be displayed in the list.)
8:Rm
*. APK(Description: "*. APK"You want to uninstall it.APKPackage)
Installation Error: install_failed_update_incompatible
When you install Android APK repeatedly, you may encounter the ADB install error in the following ways: failure [install_failed_update_incompatible]
This is probably because you did not thoroughly perform the uninstall application in the past, but simply RM/data/APP/The following APK file. One remedy is as follows:
Start the simulator and enter the menu
Settings-> Applications-> mange
Applications-> select the application-> select "unistall ".
In this way, the APK can be completely deleted and re-installed.
Another method is to set/data/system/packages. delete the corresponding information of the application in XML, restart the simulator, and then install it, because after ADB install, it will be in packages. add the corresponding program information in XML.