LibGDX - HTML5 Run& Deploy

时间:2015-07-17 18:53:53

标签: html libgdx tools.jar

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

任务执行失败'核心: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 

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。

  1. 您需要安装jdk Download here
  2. 您需要配置您的变量环境:JAVA_HOME

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