我一直在Eclipse上的Android项目上工作一段时间。 突然今天,当我打开Eclipse时,我看到项目名称附近有一个exclmation点,当我尝试构建它时,我在build.xml文件中遇到错误:
<import file="${sdk.dir}/tools/ant/build.xml" />
<!-- These targets only exist so they will be visible in IntelliJ. -->
<target name="ij-debug" depends="clean,debug"/>
<target name="ij-release" depends="clean,release"/>
<target name="ij-install" depends="clean">
<exec command="ant debug install"/>
</target>
<target name="ij-uninstall" depends="uninstall"/>
错误是:
Cannot find ${sdk.dir}/tools/ant/build.xml imported from
C:\Users\myuser\Desktop\projectname\android\build.xml
和
Target clean does not exist in this project
Target uninstall does not exist in this project
我已经尝试检查“忽略所有构建文件问题”,但后来我遇到了新的错误:
Source resource does not exist:C:\Users\myuser\Desktop\projectname\android\local.properties
有谁知道如何解决这个问题?
谢谢。
修改
这是项目的文件夹: