FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ': ................... :compileJava'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
tool.jar 파일 위치를 바꿔주면 된다.
cd Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/lib/
sudo cp tools.jar /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib
* tools.jar의 위치는 본인 jdk 설치 위치에 따라 다르다.
ref