Gen already exists but is not a source folder. convert to a source folder or rename it.

Source: Internet
Author: User

Gen already exists but is not a source folder. convert to a source folder or rename it.

After SVN updates the project ~ The above error.

Solution:

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" directory, click OK, click yes, and then click OK.

6. Right-click the project and select "Fix Project Properties" in "andriod Tools"


Cause of error: the classpath file has an error. This file exists in the root folder of the project, which is automatically generated by eclipse and used by the project during compilation.


The file is located in the project root folder. classpath

<?xml version="1.0" encoding="UTF-8"?><classpath><classpathentry kind="src" path="src"/><classpathentry kind="src" path="gen"/>  <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/><classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/><classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/><classpathentry kind="output" path="bin/classes"/></classpath>
NOTE: If it is missing
<classpathentry kind="src" path="src"/>
The project and folder structure will change,

This may cause a problem: the project cannot be executed normally and an error will be reported: the class path cannot be found.


No. Try it on your own.

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: info-contact@alibabacloud.com 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.