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:
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!
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!