Errors such as repeated empty packages during Android project import are often related to the imported Java compilation level. Click Project Properties>
Java compiler-> modifying compiler compliance level is generally 1.6.
After the clean project is modified, you will often encounter:
Gen already exists but is not a source folder. convert to a source folder or rename it error.
Solution to this problem:
1. Right-click the project and select "properties"
2. Select "Java build path" on the left"
3. Open the "Source" tab.
4. Click "add folder ..."
5. Check the "gen" folder, click OK, click yes, and then click OK.
6. Right-click the project and select "Fix Project Properties" in "andriod Tools"
The cause of this problem is that the classpath file has an error. This file exists in the root directory of the project, which is automatically generated by eclipse. It defines the $ classpath that your project uses during compilation, generally, manual configuration is not required. If an error occurs, you can also manually modify it:
XML Code
- <? XML version = "1.0" encoding = "UTF-8"?>
- <Classpath>
- <Classpathentry kind = "src" Path = "src"/>
- <Classpathentry kind = "src" Path = "gen"/>
- <Classpathentry kind = "con" Path = "com. Android. Ide. Eclipse. ADT. android_framework"/>
- <Classpathentry kind = "con" Path = "com. Android. Ide. Eclipse. ADT. Libraries"/>
- <Classpathentry kind = "lib" Path = "libs/ksoap2-android-assembly-2.5.8-jar-with-dependencies.jar"/>
- <Classpathentry kind = "output" Path = "bin/classes"/>
- </Classpath>
From the data, we can easily see that the dependency file of the project is described above:
Location of the source file (kind = "src ")
Running System Environment (kind = "con ")
Location Information of the project library (kind = "lib ")
Project output directory (kind = "output ")
From: http://yxwang0615.iteye.com/blog/1849965