[BUG]: JAVA_HOME is not set.
See original GitHub issueDescribe the bug 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. | | | ========================================================================================================
To Reproduce Steps to reproduce the behaviour:
- Open this project template in macos.
Expected behaviour A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
- Device: [e.g. Pixel 3]
- OS: [e.g. Android10]
- Version [e.g. 30]
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
You can disable the “failed on java home is not set” attribute here: https://github.com/Drjacky/MVVMTemplate/blob/190b2f9f5d1a6d81d1c2aad155e2903eb43c549d/build.gradle.kts#L46
This happens since AS Chipmunk 2021.2.1 Patch 1 update. There is a solution for that https://youtrack.jetbrains.com/articles/IDEA-A-19/Shell-Environment-Loading Although, I’m not sure how to follow it! If you found the solution, would be great to share it with the rest of us