Closed snpefk closed 2 years ago
Thanks for reporting. This is interesting. I wonder why this option is missing.
This seems like an intellij issues as I've had similar problems in the past, and the only thing I've done to fix it was:
I'd still say this is probably the wrong place for this issue. If you open this issue on googles issuetracker or on youtrack I'll star it!
FYI you can also use the STUDIO_GRADLE_JDK
env variable instead of setting JAVA_HOME
manually in the ide (source)
@rciovati Didn't help. I still get the error on AS 2021.1.1:
A problem occurred configuring root project 'MVVMTemplate'.
> =============================== Gradle Doctor Prescriptions ============================================
| JAVA_HOME is not set. |
| Please set JAVA_HOME so that switching between Android Studio and the terminal does not trigger a fu |
| ll rebuild. |
| To set JAVA_HOME: (using bash) |
| echo "export JAVA_HOME=$(/usr/libexec/java_home)" >> ~/.bash_profile |
| or `~/.zshrc` if using zsh. |
| |
========================================================================================================
While the JAVA_HOME is set
Looks like it's an issue because of intellij https://issuetracker.google.com/issues/216364005 https://twitter.com/softwarejameson/status/1486192383716909057
Closing since this is an issue in intellij.
In arctic fox version Android Studio options for set project JDK through
JAVA_HOME
is missing. It seems like "Arctic Fox" version of Android Studio rework settings for "Project Structure" (moving JDK Location to Gradle Settings) and Gradle JDK combobox doesn't showJAVA_HOME
option in "Gradle JDK" setting (although, I set env in.zshrc
and even in.profile
, just to be sure).As workaround I'm disabled
failOnError
, but recommendation specified on this page does not work for me.