java.lang.IllegalStateException: Could not find tools.jar

jdk1.8.65, java_home is set. Where is an error?

Building the project
:app-core:assembleDbScripts UP-TO-DATE :app-core:dbScriptsArchive UP-TO-DATE :app-global:compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app-global:compileJava’. > Could not find tools.jar * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 0.67 secs [17:42:04.524] Task ‘assemble’ failed
java.lang.IllegalStateException: Could not find tools.jar

Hello.

It looks like Gradle is run by JRE instead of JDK.
Could you please check the Java Home field value in Studio launcher?

Fixed. Ok.