0

Can you tell me why the following classpath throws an error when I try to import my project into Eclipse?

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" path="src/main/java"/>
    <classpathentry kind="src" path="gen"/>
    <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
    <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="output" path="bin/classes"/>
</classpath>

The error:

cannot nest 'myproject/src/main/java' inside library 'myproject/src'

Thank you

NissimL
  • 148
  • 8
Pablo Silva
  • 47
  • 10
  • myproject/src is already listed as a source directory in your eclipse. remove it (as a source directory) and use myproject/src/main/java as the source directory. – DwB Jul 29 '14 at 16:00
  • There's no such source directory on my project, just src/main/java. – Pablo Silva Jul 30 '14 at 07:50

0 Answers0