2016-07-23 190 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构建时,它向我展示了这个错误 –