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.