Cordova Android构建错误:执行"ant clean -f ..."时出错. [英] Cordova android build error: Error executing "ant clean -f ..."
本文介绍了Cordova Android构建错误:执行"ant clean -f ..."时出错.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试在android设备上构建并运行cordova项目时,出现此错误:
I get this error, when i try to build and run an cordova project on an android device:
Running app on platform "android" via command "***/Documents/***/App/platforms/android/cordova/run" --device
[Error: An error occurred while running the android project.
/***/Documents/***App/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error executing "ant clean -f /***/Documents/***/App/platforms/android/build.xml": Build failed
关于解决此问题的任何建议吗?
Any suggestion on fixing this problem?
推荐答案
检查"adb设备"命令是否有效.如果不起作用,请确保已安装"android-tools-adb",然后运行"adb设备"命令.之后,重新运行构建.
Check if "adb devices" command works. If it doesn't work ensure "android-tools-adb" is installed and then run the "adb devices" command. Rerun the build after that.
这篇关于Cordova Android构建错误:执行"ant clean -f ..."时出错.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文