Eclipse + Android Common Errors and Solutions

Source: Internet
Author: User

1. Warning: application does not specify an API level requirement!

Cause: min SDK version is not specified when a project is created.

Solution: configure the androidmanifest. xml file.

(1) Open the androidmanifest. xml file

(2) Add the corresponding SDK version numbers to the user SDK min, target, and Max.

 

2. When eclipse is developing Android applications, there may be an error where the storage space is insufficient and APK cannot be installed.

(1) the solution is simple:

First, try to delete unnecessary applications. If the space is too large and the storage space is insufficient, try the following method:

Delete the APK file under the "gen" directory under the Eclipse project directory, generate and refresh it, and run it successfully.

(2) When the command line ADB install **. APK is used, there will also be insufficient storage space:

The solution is to run the command line to enter the simulator ADB shell.

Then, go to the ADB/data/local/tmp directory and delete the files, and then run ADB install **. APK.

 

3. [22:24:53-activity03] installation error: install_failed_insufficient_storage

[22:24:53-activity03] Please check logcat output for more details.

[22:24:53-activity03] Launch canceled!

In fact, the memory is too small. Check whether memory is allocated to the simulator. If Ram is not allocated to the simulator in AVD manager. If the assignment has been made, refer to Lesson 2.

 

4. Click Install new software in eclipse.

Solution: reset the working directory.

 

5. When installing the ADT plug-in of eclipse, the system prompts "requires 'org. Eclipse. GEF 0.0.0 'But it cocould not be found"

Solution: on the menu bar of Eclipse, help-> install new software, add release.

Note:

When installing ADT, you must add the following sites to automatically install the dependent components:

Eclipse GEF-http://download.eclipse.org/tools/gef/updates/releases/
Eclipse EMF-http://download.eclipse.org/modeling/emf/updates/releases/
Eclipse GMF http://download.eclipse.org/modeling/gmf/updates/releases
Eclipse WebTools-http://download.eclipse.org/webtools/updates/
Google eclipse Plugin-http://dl.google.com/eclipse/plugin/3.5

 

6. emulator is running, but ADB reports "no device"

Solution: restart ADB.

Abd kill-server # disable ADB

ADB services # restart ADB

 

7. Missing "org. Eclipse. WST. SSE. Core 0.0.0" while installing SDK for eclipse 3.5

Solution: Add http://download.eclipse.org/tools/gef/updates/releases/to the menu bar help-> install new software.

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.