Skip to content

Commit 196d4dd

Browse files
committed
Disable org.gradle.java.home in gradle.properties
Comment out the hardcoded org.gradle.java.home entry in android/gradle.properties so the build no longer forces the Android Studio JBR path. This lets the system or configured toolchain determine the JDK (avoiding issues with unsupported JDK versions) while keeping other Gradle settings unchanged.
1 parent 77b5d2f commit 196d4dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
org.gradle.jvmargs=-Xmx2G -XX:MaxMetaspaceSize=1G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
22
android.useAndroidX=true
33
# Android Gradle Plugin / Gradle do not run on JDK 26; without a JDK 17–21 toolchain the build fails with "26.0.2" as the only message.
4-
org.gradle.java.home=C:\\Program Files\\Android\\Android Studio\\jbr
4+
# org.gradle.java.home=C:\\Program Files\\Android\\Android Studio\\jbr
55
# Enable parallel build to speed up the build process
66
org.gradle.parallel=true
77
# Enable the Gradle build cache to reuse outputs from previous builds

0 commit comments

Comments
 (0)