• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Android Studio won't connect to Java

I have been using Kotlin in Android Studio but now want to use the Java code but I just can't get it to connect to Java.

So, I have:
  • Installed Java SDK into:


  • Checked that it works OK:


  • I have set the Windows environment variable’s:




But when I start a Java app I get:

Failed to find Build Tools revision 26.0.2

And in gradlew.bat I get: ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Any help really appreciated. Cheers!
 
Back
Top Bottom