question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JAVA_HOME is not set.

See original GitHub issue

I have set the java home , other project is no problem I also modify project structure , no use

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'Jetpack-Compose-Playground-develop'.
> =============================== 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.                                                                          |
  |                                                                                                      |
  ========================================================================================================

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Qdafengzicommented, Oct 15, 2021

I give you a suggest , remove some cofiguration ,Because everyone’s development environment is different

0reactions
Qdafengzicommented, Oct 15, 2021

I send you a email to hotmail

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing the JDK Software and Setting JAVA_HOME
Procedure To Install the JDK Software and Set JAVA_HOME on a Windows System · Right click My Computer and select Properties. · On...
Read more >
The JAVA_HOME environment variable is not set
Firstly go to My Computer right click open properties and open Advanced System Setting and then open Environment variables. Open the Path ...
Read more >
Setting the JAVA_HOME Variable in Windows
Set the JAVA_HOME variable via the command line · Open Command Prompt (make sure you Run as administrator so you're able to add...
Read more >
Fix JAVA_HOME errors | Invalid directory | Not set or defined
One very common developer mistake that leads to the JAVA_HOME is set to an invalid directory error is pointing JAVA_HOME to the \bin...
Read more >
Set JAVA_HOME on Windows 7, 8, 10, Mac OS X, Linux
A quick look at how to set the JAVA_HOME variable on Windows, Mac OS X, and Linux. ... Not having to roll all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found