I've problem with build my Android project from IntelliJ. I set up default Android project and try to compile, then:
Error: Gradle: Execution failed for task ':app:preDexDebug'.
(...)
/android-sdk/sdk/build-tools/android-4.4W/dx: line 89: exec: java: not found
I use gradle wrapper from ide. I have java on the PATH, and JAVA_HOME properly. So what is the reason of error?