Skip to content

Commit 480b7b5

Browse files
committed
Android: use java v17 as source and target version
1 parent a62987e commit 480b7b5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

platforms/android/app/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,18 @@ String versionString = getVersion()
199199
System.out.printf("DEBUG: Using abis: %s%n", abisToUse.join(", "))
200200
System.out.printf("DEBUG: Using version: %s%n", versionString)
201201

202+
java {
203+
toolchain {
204+
languageVersion = JavaLanguageVersion.of(17)
205+
}
206+
}
207+
202208
android {
209+
compileOptions {
210+
sourceCompatibility JavaVersion.VERSION_17
211+
targetCompatibility JavaVersion.VERSION_17
212+
}
213+
203214
compileSdk 34
204215
ndkVersion "26.3.11579264"
205216
defaultConfig {

0 commit comments

Comments
 (0)