Ant “目标”;“调试”;不';项目中不存在

Ant “目标”;“调试”;不';项目中不存在,ant,command-prompt,apk,Ant,Command Prompt,Apk,我尝试使用“ant debug”命令创建APK文件。但是当我尝试时,我得到了以下错误 Build Failed Target "debug" does not exist in the Project "androiddemo" Total Time: 0 Seconds Build Failed Target "release" does not exist in the Project "androiddemo" Total Time: 0 Seconds 也可以使用release命令

我尝试使用“ant debug”命令创建APK文件。但是当我尝试时,我得到了以下错误

Build Failed
Target "debug" does not exist in the Project "androiddemo"
Total Time: 0 Seconds


Build Failed
Target "release" does not exist in the Project "androiddemo"
Total Time: 0 Seconds

也可以使用release命令进行检查。得到相同的错误。你能指导我获取Android应用程序的APK文件吗?我的命令犯了一个愚蠢的错误。实际命令是

"ant -debug"

但是没有创建APK文件。我遗漏了什么吗?

你有没有弄明白为什么没有生成apk?我也有同样的问题