【问题标题】:LibGDX - HTML5 Run&DeployLibGDX - HTML5 运行和部署
【发布时间】:2015-07-17 18:53:53
【问题描述】:

我正在使用 Android Studio。 我想在 HTML5 上运行和部署我的应用程序。 我在终端上输入命令“gradlew.bat html:superDev”,但它给了我错误消息:

任务“:core:compileJava”执行失败。找不到 tools.jar

我该如何解决这个问题?

这是完整的错误信息:

Starting a new Gradle Daemon for this build (subsequent builds will be faster).
Configuration on demand is an incubating feature.
:core:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':core:compileJava'.
> Could not find tools.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED 

【问题讨论】:

    标签: html libgdx tools.jar


    【解决方案1】:

    我遇到了同样的问题。

    1. 你需要安装 jdk Download here

    2. 你需要配置你的变量环境:JAVA_HOME

      或者您可以将 tools.jar 从 %JAVA_HOME\lib 复制到 Android Studio\lib

    【讨论】:

      猜你喜欢
      • 2012-11-01
      • 2013-10-07
      • 2015-02-20
      • 2014-12-22
      • 1970-01-01
      • 2012-12-01
      • 2015-04-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多