Could not find tools.jar when creating gradle project

I am trying to create a gradle project and get an error:

Could not find tools.jar. Verify that C: \ Program \ Java \ jre1.8.0_144 files contain a valid JDK installation.

I add to path

C:\Program Files\Java\jdk1.8.0_112\bin
C:\Program Files\Java\jre1.8.0_144\bin

when i write java and javac in console everything works. But the project is not building

+6
source share

All Articles