Cordova android生成错误 [英] Cordova android build error

查看:216
本文介绍了Cordova android生成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到这个错误,当我尝试在Android设备上构建和运行cordova项目:

 平台android通过命令*** / Documents / *** / App / platforms / android / cordova / run--device 
[错误:运行android项目时出错。
/***/Documents/***App/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
执行ant clean -f /***/Documents/***/App/platforms/android/build.xml时出错:Build failed



有关修复此问题的任何建议吗?

解决方案

检查adb devices命令是否有效。如果它不工作确保安装android-tools-adb,然后运行adb devices命令。之后重新运行构建。


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?

解决方案

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生成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆