java - 我的反应原生项目/应用程序中缺少 JDK。找不到 Tools.jar 或 JDK
问题描述
我在执行 cd andorid ./gradle assemble 时收到以下错误。看来我的项目缺少 JDK 的路径我该如何添加/更正这个?
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 5s
17 actionable tasks: 2 executed, 15 up-to-date
mattlaszcz@Matts-MBP android % /usr/libexec/java_home -V | grep jdk
Matching Java Virtual Machines (1):
1.8.291.10 (x86_64) "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
解决方案
推荐阅读
- jquery - 如何使用来自 jquery 加载的返回值和回调函数中的变量值相同的 jquery 加载?
- docker - 如何将 jupyter/all-spark-notebooks 容器与 docker 中的 hadoop 多节点集群连接起来
- python - 使用条件替换列表中的字符串
- c# - 找不到资源文件c#的路径
- gitlab - 将项目从我的用户名转移到我的组织后,我的用户名显示我是维护者而不是所有者
- apache-spark - 我们如何在数据框中有两行具有相同 id 的行?
- python - 通过终端在 openSUSE Leap 中安装 Python
- perl - 在 linux 中使用 perl 删除单元格(电子表格)中的换行符/新行
- php - Android 和 Laravel 相关问题
- javascript - $watch 在通过 ng-repeat 迭代的单个对象中更改 ui-select