错误现象:
E:\test>gradle build
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Could not find tools.jar
原因分析:
这个提示很明显是找不到JDK。所以需要设置一下JDK信息。
解决办法:
设置环境变量JAVA_HOME;并添加%JAVA_HOME%/bin到path中。