Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gradlew script ignores setting of JAVA_HOME environment variable. #164

Open
shaneharper123 opened this issue May 31, 2024 · 1 comment
Open

Comments

@shaneharper123
Copy link
Contributor

I got the following error message when I ran gradlew:

ERROR: JAVA_HOME is set to an invalid directory: /opt/android-studio/jbr

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

JAVA_HOME was already correctly set in my environment. (My JAVA_HOME isn't /opt/android-studio/jbr.) The message left me confused.

I fixed the problem by deleting line 2 of gradlew (export JAVA_HOME=/opt/android-studio/jbr).

@shaneharper123
Copy link
Contributor Author

gradlew was deleted in f85f1b2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant