2016-07-23 187 views
-1

我想構建一個IONIC項目,但是我面臨這個異常,我無法爲此調試解決方案。失敗:構建失敗,出現異常構建離子

FAILURE: Build failed with an exception. 

* What went wrong: 
A problem occurred configuring root project 'android'. 
> failed to find Build Tools revision 24.0.1 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output. 
Error: Error code 1 for command: cmd with args: /s,/c,"C:\application\Qrioh\plat 
forms\android\gradlew cdvBuildDebug -b C:\application\Qrioh\platforms\android\bu 
ild.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true" 
+0

如何安裝錯誤消息說缺失的構建工具? –

+0

請參閱http://stackoverflow.com/questions/38487341/failed-to-find-build-tools-revision-24-0-1-when-deploying-meteor-to-android-devi – vinoth12594

回答

0

轉到文件>項目結構>選擇模塊>屬性

選擇構建工具版本相同的編譯SDK版本選擇的版本。

希望這可以解決您的問題。

+0

但我使用的是IONIC意味着我無法識別我該如何解決這個問題你已經提到了路徑,但是因爲在我的項目中沒有目錄 –

+0

您正在使用哪個IDE。如果它的android studio你應該在菜單選項卡中找到文件 – Thecarisma

+0

實際上,IONIC是混合框架工作,我們必須在HTML中編寫腳本,並使用android SDK構建應用程序。當我試圖用Android Studio IDE構建時,它向我展示了這個錯誤 –