j-kaltes / Juggluco

Android app for Freestyle Libre 1,2 and 3 sensors
GNU General Public License v3.0
182 stars 46 forks source link

gradlew script ignores setting of JAVA_HOME environment variable. #164

Open shaneharper123 opened 1 month ago

shaneharper123 commented 1 month ago

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 commented 2 weeks ago

gradlew was deleted in f85f1b243f3f51aaf61b5b1421b1ef6d77a7af5c.