eclipse problem

gen already exists but is not a source folder. Convert to a source folder or rename it的错误。

 

 

The solution to this problem:

 1. Right click on the project and select "Properties"

2. Select "Java Build Path" on the left 

3. Open the "Source" tab panel

4. Click "Add Folder..."

5. Check the "gen" folder, click OK, click YES, and then click OK

6. Finally, right-click the project and select "Fix Project Properties" in "Andriod Tools"

 

The reason for this problem is that the classpath file is wrong. This file exists in the root directory of the project and is automatically generated by eclipse. It defines the $CLASSPATH used by your project during compilation. Generally, manual configuration is not required. If you make a mistake, you can also manually modify:

 

 

Xml code   Collection code
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <classpath>  
  3.     <classpathentry kind="src" path="src"/>  
  4.     <classpathentry kind="src" path="gen"/>  
  5.     <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>  
  6.     <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>  
  7.     <classpathentry kind="lib" path="libs/ksoap2-android-assembly-2.5.8-jar-with-dependencies.jar"/>  
  8.     <classpathentry kind="output" path="bin/classes"/>  
  9. </classpath>  

 

 

From the data, we can easily see that the dependent files of the project are described above:

The specific location of the source file (kind="src")

Operating system environment (kind="con")

The specific location information of the library of the project (kind="lib")

Project output directory (kind="output")

Guess you like

Origin blog.csdn.net/u012049463/article/details/50681887