How to import eclipse to Android Projects

Source: Internet
Author: User

Possible error:


(1) SDK problems:

After correctly installing the android SDK, add the path of the Tools Folder under the installation directory to the environment variable path.


Add the SDK to eclipse: Windows-> preference-> Android, and set the SDK location


For a project, you can also right-click the project and choose Properties> JAVA build path> Add jars to add

SDK installation directory: Android-SDK-Windows/platforms/Android-9 Android. JAR File


(2) Incorrect import method:


1. You can create an android project: file-> New-> Android project-> Create project from existing source


2. Import with import: file-> Import-> General-> existing project into workspace find the source file to open


(3) Pay attention to the SDK version!


If the message "unable to resolve target 'android-5'" is displayed on the eclipse console during import '"


The possible problem is that the SDK version you installed is later than the project version! (For example, you have installed Android 2.3 and the project is 2.0)


At this time you need to modify the default. properties under the project and change target to anroid-9 (that is, the SDK of the highest version)


(4) databases are required for this project, but we do not have this database ......


For example, to import a phone book program listview, you need to prepare the corresponding contact database.

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: 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.