Eclipse: the correct method for importing Android projects.
Direct:
Solution to package errors after importing a project in android
Select a project and right-click to open Properties:
1. Check whether project build target is selected on the android option page.
2. Check whether the corresponding android libraries is checked in orler and explain in java build path.
3. Open windows-> preferences: java-> compiler in the menu bar and change the jdk version. Generally, if you change 1.6 to 1.5, there is no error.
I used this method to solve the problem (5.0 or 6.0. Found '1. 7' instead. Please use Android Tools> Fix Project Properties). I haven't tried any other problems. Let's talk about the problem.
4. Check your Android SDK path settings: windows-> preferences: android
5. Set your Android SDK environment variable: Set ANDROID_SDK_HOME in path to your android sdk directory.
6. If the problem occurs in gen, first try to delete the package under gen, and then wait for eclipse to automatically compile
How to import existing Android projects into the Eclipse project
If the project to be imported is in the workspace directory, use import.
If it is not in the directory, you can create a new-> project and select an existing project.
How to import another Eclipse project as a library in Android
Copy the folder of another project, and set the eclipse workspace to the folder where the project is saved.