2015-06-20 67 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