【问题标题】:FAILURE: Build failed with an exception build ionicFAILURE:构建失败,出现异常构建离子
【发布时间】:2016-11-27 01:58:46
【问题描述】:

我正在尝试构建一个 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"

【问题讨论】:

标签: android ionic-framework


【解决方案1】:

转到文件>项目结构>选择模块>属性

选择与编译 SDK 版本中选择的版本相同的构建工具版本。

希望这能解决您的问题。

【讨论】:

  • 但是我正在使用 IONIC 意味着我无法识别我该如何解决这个问题您已经提到了路径,但因此我的项目中没有目录
  • 您使用的是哪个 IDE。如果是 android studio,您应该在菜单选项卡中找到文件
  • 实际上 IONIC 是混合框架工作,我们必须在 HTML 中编写脚本并使用 android SDK 构建应用程序。当我尝试使用 Android Studio IDE 构建时,它向我显示此错误
猜你喜欢
  • 1970-01-01
  • 2015-12-19
  • 1970-01-01
  • 1970-01-01
  • 2018-07-28
  • 2018-10-22
  • 2021-11-11
  • 2023-03-12
相关资源
最近更新 更多