Hi All, Apologies that this isn't a Kotlin based ...
# android-studio
k
Hi All, Apologies that this isn't a Kotlin based question but needed to get some help quite quickly and google is failing me. In my Android studio I am using the JetBrains instance of Java 17, But, when I try to do a command line gradle build its using a different JVM. its picked up an instance of JVM 21 I have on my device. but I have no idea why its doing that. it means I get a load of errors when I compile and not the --info --stacktrace that im trying to get from my error in Android Studio. Any ideas?, the only thing I can think of is that I downloaded the latest version of Android studio but it was having issues for me so I downgraded back to Girrafe and that some sort of config has messed up.
m
You need to reset your environment variables before running gradlew:
I have this in the perl script I use to start android studio:
$ENV{JAVA_BINDIR} = "/home/markgray/Development/android-studio/jbr/bin"; $ENV{JAVA_HOME} = "/home/markgray/Development/android-studio/jbr"; $ENV{JAVA_ROOT} = "/home/markgray/Development/android-studio/jbr";
Your locations will vary of course.
k
Ahh thanks. I did this to get it going in the long run. Thanks for the confirmation