Ecplise导入工程时,报如下错误:
原因在于工程中有相同的工程名,导入报上面的错误,解决办法:
打开工程目录下面的.project文件
修改
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>TestProject</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.Android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
修改<name>TestProject</name>中的TestProject名字为一个新的、与当前工作目录下其他工程名不一致,然后再重新导入即可。