Bootstrap

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

问题

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 :

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

参考链接