ionic run android failed, error gradle line 64

来源:互联网 发布:深圳淘宝化妆品销售 编辑:程序博客网 时间:2024/04/30 13:32

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.gradle' 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 --debugoption 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!


0 0