Invalid project source folder: "src_ex_common"
I am trying to open a sample project from google opensource as shown in the following link: https://android.googlesource.com/platform/packages/apps/Calendar.git
I imported 5 git repos as required in the program, but there is still a red exclamation mark next to the project, and the Problems suggests that the project is missing the required source folder "src_ex_common". I right click on the project name => Properties => Java Build Path => Source, I saw "MainProjectActivity / src_ex_common (missing)".
I right clicked on the project name => new => original folder and tried to name the new folder named "src_ex_common" but eclipse said . The folder is already the original folder . Then I tried to name a new folder called "src_ex_common" on Windows. The above problem has been solved, but there are many errors that appear in different java files under src.
I googled some said it might be related to an issue in ".classpath" The details of .classpath are given below:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src_ex_common"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
Has anyone encountered this problem before? Great if you share your approach to deal with this. Many thanks!
source to share
If you open the file mkprojectfile
in the root folder, you will see that the folder src_ex_common
is linked to the library commons
:
<link>
<name>src_ex_common</name>
<type>2</type>
<location>SRC_ROOT_DIR/frameworks/ex/common/java</location>
</link>
You can import this project from the same ex repository that contains the dependency chips
.
source to share