Jerry
04/14/2023, 11:30 AM.prebuildCommand(displayName: "Gradle Build (path: \(projectRoot.description))", executable: projectRoot.appending(subpath: "gradlew"), arguments: ["-v"], environment: ["JAVA_HOME": javaHome], outputFilesDirectory: context.pluginWorkDirectory)]
Gradle seems to take issue, saying ERROR: JAVA_HOME is set to an invalid directory
Now, the JAVA_HOME
is set to use /usr/libexec/java_home
, which points to a java 11 version i've installed through homebrew. For some reason however, gradle expects the JAVA_HOME
to point to the java provided by Android Studio (which I don't want, because I want to run this on CI as well). What am I missing here?Jerry
04/17/2023, 9:13 AMThomas Flad
02/02/2024, 1:05 PMJerry
02/02/2024, 1:27 PMThomas Flad
02/02/2024, 1:40 PM