0

我在 Eclipse 上的一个 Android 项目上工作了一段时间。今天突然打开Eclipse,在项目名附近看到一个感叹号,尝试构建时,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

有谁知道如何解决这个问题?

谢谢你。

编辑

这是项目的文件夹:

项目文件夹

4

0 回答 0