Android cannot install apidemos

Source: Internet
Author: User

 

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.