Mez Pahlan
02/17/2025, 9:02 PMJAVA_HOME
set to /usr/lib/jvm/temurin-21-jdk-amd64
.
• My terminal shows this as does the terminal within AS.
• However when I go to File | Settings | Build, Execution, Deployment | Build Tools | Gradle
JAVA_HOME
is set to the jbr
from the Toolbox installation.
• It's the same value as `GRADLE_LOCAL_JAVA_HOME`: the jbr
version.
Is that correct? And why isn't AS reading my JAVA_HOME
environment variable correctly?
I'm on Ubuntu 24.04, have installed Eclipse Temurin 21 JDK, and am running Android Studio Meerkat Feature Drop | 2024.3.2 Canary 5.kaeawc
02/20/2025, 2:36 AMColton Idle
02/20/2025, 2:53 AMMez Pahlan
02/20/2025, 1:46 PM/bin/bash
rather than /usr/bin/bash
(which is what which bash
reports on my system). However changing this didn't help sad panda .Mez Pahlan
02/20/2025, 1:49 PMWhere are you setting JAVA_HOME? .zprofile or .bash_profile should be picked up correctly by Android Studio@kaeawc I'm setting this in
.bashrc
which should be read by .profile
on login for me - I'm running Ubuntu Linux.
However, interestingly I don't have a .bash_profile
file.Mez Pahlan
02/20/2025, 2:00 PMColton Idle
02/20/2025, 3:35 PMColton Idle
02/20/2025, 3:36 PMMez Pahlan
02/20/2025, 5:28 PMi had to also kill and restart jetbrains toolbox because it has something to do with intialization as wellI've restarted my whole machine multiple times. Would that be enough?
Colton Idle
02/20/2025, 5:31 PM