Android studio can't find javaHome
I must admit that, while I have the basics of java down, I'm still a bit of a novice. As such, I've recently taken to using intellij ultimate and have been using android studio independently for some time. Since the IDE(A) supports Android studio, I had hoped to use this instead of the base software (which, might I add, is working perfectly fine and is up to date), only whenever I try to launch a new project/previously made projects in this, it always comes up with the following error:
"Gradle sync failed: The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location [and so on]".
A lot of the previous posts I've read state that you need to select the correct JDK & SDK, but that was something I did a long while ago (used the AS sdk that I already had installed) and more to the fact, all java projects/aspects seem to be working perfectly fine, hence my confusion.
The only concern I do have is if I've somehow messed up the path, since intellij keeps looking to the android SDK (Android\sdk\bin\java.exe) for the java executable. If any of the above is incorrect/if you have any suggestions, I would be grateful!
All the best,
~Star
Please sign in to leave a comment.
Did you check the related answers at https://stackoverflow.com/questions/29356796/intellij-gradle-plugin-the-supplied-javahome-seems-to-be-invalid ?