Ecplise导入工程报Cannot import *** because the project name is in use问题

来源:互联网 发布:动画制作软件中文版 编辑:程序博客网 时间:2024/05/16 11:22

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名字为一个新的、与当前工作目录下其他工程名不一致,然后再重新导入即可。

0 0
原创粉丝点击