FAQs about installing Android APK package and ADB Shell

Source: Internet
Author: User

 

1 installation error: install_failed_insufficient_storage

Solution:
1. Connect the data cable to the computer and use the "disk drive" method.
2. Go to the. android_secure directory under sdcard (use a third-party Resource Manager)
3. Delete the smdl2tmp1. ASEC file under this directory.

If the directory does not use the smdl2tmp1. ASEC file, ADB shell executes the following command:
Rm/mnt/secure/ASEC/smdl2tmp1. ASEC

2 *. java file and Main. there are no errors in the XML file. In the project directory on the left, there is a Red Cross in the project name. When eclipse compiles the android project, this error is prompted: Error generating final archive: debug certificate expired on xxxxxx (date)
Solution:
Linux: window -- preferences -- Android -- default debug keystore in build displays the address "/home/jinli /. android/debug. keystore, delete the debug under this path. keystore and ddms. cfg

Window XP: Enter: C:/Documents and Settings/Administrator/. Android
Delete: Debug. keystore and ddms. cfg

 

Vista: C:/users/li_guotao/. Android

Delete: Debug. keystore and ddms. cfg

 

3. When an app with an SDK is added, an error occurs: Android requires compiler compliance level 5.0. Please fix project properties.

Solution: First clean, right-click the project and choose Android tools> fix project properties. If the problem persists, choose Project> Properties> Java compiler, check whether JDK compliance is set to 1.6 and enable specific seetings. 4 @ OverrideSolution to the error:

@ Override is already available in JDK 5, but there is a small bug that does not support interface implementation.
JDK 6 fixes this bug. You can add @ override to both the method override of the parent class and the implementation of the interface.

Modify the compiler version specified by your eclipse
In the Java compiler option, the specified version must be at least 5.0.

In myeclipse, change the compiler method: Project-> properties-> Java compiler-> Configure workspace setting, which can be set on the pop-up page.

 

5. Error: ADB out of date, killing ADB service. Sometimes logcat does not print. Solution: Select reset ADB for ddms, select the connection device to restore the logcat information. 6 ADB server is out of date killing... ADB server did not ack failed to start demon or install APK error: please ensure that ADB is correctly located at 'C: \ Android \ platform-tools \ adb.exe 'and can be executed solution: end all the adb.exe processes in the computer task manager.

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.