2015-06-20 38 views
2

以前我可以编译,但我更新了我的科尔多瓦东西事情发生后。我有这个错误。离子运行android失败,错误gradle线64

FAILURE: Build failed with an exception. 

* Where: 
Script 'C:\Users\Jay\testproject\platforms\android\CordovaLib\cordova.grad 
le' line: 64 

* What went wrong: 
A problem occurred evaluating root project 'android'. 
> No installed build tools found. Please install the Android build tools version 
19.1.0 or higher. 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output. 

我下载了所有需要的SDK,这里有什么问题?

回答

1

我有同样的问题,这是我如何解决它。我有构建工具的版本安装20,但仍然被收到此错误:

No installed build tools found. Please install the Android build tools version 19.1.0 or higher.

所以我创建了一个名为20build-tools目录中的目录,所有文件复制从sdk\build-tools\android-4.4W\*sdk\build-tools\20。问题解决了!

+0

我正面临同样的问题。你能进一步阐述一下吗? build-tools的位置在哪里创建新目录以及所有 – Vasanth

+0

@Vasanth嗨,根据我的经验,卸载所有android安装的sdk工具和平台(完全删除它们)并从头安装它们。如果您想知道您需要安装什么,请查看以下列表:https://cordova.apache.org/docs/en/latest/guide/platforms/android(确保您完全阅读该文档,并注意版本) – Meysam

+0

嗨@Meysam我会尽力去做。 – Vasanth

相关问题