skip to Main Content

Android Studio on Windows (latest version, Hedgehog) does not have a JDK path! Very frustrating, as I can’t find it in settings nor in the project structure, as 99% of all related questions seem to have that answer. Any chance someone knows why this and/or how I can change the JDK? I am assuming the SDK is not meant for the Java path, right? So that’s why you see the Android API.

enter image description here

enter image description here

I want to test out changing my Java version, because I am constantly getting this error when I try to add a plugin to my app. Desperately hoping that it will fix it when a newer Java version is being used.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.

2

Answers


  1. Chosen as BEST ANSWER

    I have fixed this. I don't know why no documentation or answer says this, but you can access the gradle and JDK configuration via

    File > New Projects Setup > Default Project Structure > gradle (tab)
    

    enter image description here

    Sharing this as I hope it will be useful for others as well.


  2. enter image description here

    Settings > Build,Exe.. > Build Gradle > Gradle

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search