1. Are you ready for the Galaxy S20? Here is everything we know so far!

Android Studio won't connect to Java

Discussion in 'Android Development' started by WinchestStoke, Feb 24, 2021.

  1. WinchestStoke

    WinchestStoke Newbie
    Thread Starter

    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!

    1. Download the Forums for Android™ app!



Share This Page