html - LibGDX - HTML5 运行和部署

标签 html libgdx tools.jar

我正在使用 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 

最佳答案

我遇到了同样的问题。

  1. 你需要安装jdk Download here

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

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

关于html - LibGDX - HTML5 运行和部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31482799/

相关文章:

python - 需要使用 beautifulsoup 提取所有字体大小和文本

javascript - 将 HTML 表格导出到 Excel,表格标题中带有 ID 或类标签

html - CSS 背景大小封面和背景位置

java - LibGDX + Box2D |相机太大

java - Jenkins 或 Maven 在类路径上放置了错误的tools.jar

php - 使用 DOM 抓取网站的标题

java - 将 Kryonet 与 Libgdx 结合使用

java - 即使相机放大,如何保持某些纹理大小不变?

java - 无法解析 com.sun :tools:0 in Maven Project?

java - 声明 maven 对 tools.jar 的依赖以在 JDK 9 上工作