您的位置:首页 > 移动开发 > Android开发

ionic run android failed, error gradle line 64

2016-07-23 00:13 363 查看
previously I can compile but after I updated my cordova something happended. I got this error.
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.


I downloaded all the required SDK, what is the problem here?


Answer

I had the same problem and this is how I fixed it. I had the build-tools version 20 installed but still was getting this error:

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

So I created a directory named 
20
 within 
build-tools
 directory,
and copied all the files from 
sdk\build-tools\android-4.4W\*
 to 
sdk\build-tools\20
.
The problem was fixed!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: