写点什么

Gradle doesn't run because it can't find tools.jar in JRE

用户头像
mengxn
关注
发布于: 2020 年 12 月 03 日

问题

Execution failed for task ':lib:lib_base:kaptPreKotlin'.
> Kotlin could not find the required JDK tools in the Java installation '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home' used by Gradle. Make sure Gradle is running on a JDK, not JRE.

Solution

Add this to gradle.properties:

org.gradle.java.home=/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home



参考链接

https://wajahatkarim.com/2018/06/gradle-doesnt-run-because-it-cant-find-tools.jar-in-jre/

用户头像

mengxn

关注

还未添加个人签名 2018.07.25 加入

还未添加个人简介

评论

发布
暂无评论
Gradle doesn't run because it can't find tools.jar in JRE