我在执行cd和ID./gradle汇编时收到以下错误。我的项目似乎缺少一条通往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
暂无答案!
目前还没有任何答案,快来回答吧!