Gradle doesn't run because it can't find tools.jar in JRE
Today, when I was uploading new version of EasyFlipView library on
jCenter, then I found this strange error which was not rebuilding my whole library module. The error was
Execution failed for task ':app:compileDebugJavaWithJavac'. Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_121 contains a valid JDK installation.
Add this to
Don’t forget to use double back slashes. For example:
org.gradle.java.home=C:\\Program Files\\Java\\jdk1.8.0_144\ .