Browse Source

Imageviewer. Fix compilation of Android target (#4467)

Fix regression after
https://github.com/JetBrains/compose-multiplatform/pull/4433

`./gradlew compileReleaseKotlinAndroid` in `imageviewer` fails with:
```
* What went wrong:
Execution failed for task ':shared:compileReleaseKotlinAndroid'.
> Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (1.8) and 'compileReleaseKotlinAndroid' (17).
```
(JAVA_HOME points to JDK 17)
pull/4473/head v1.6.10-dev1509
Igor Demin 10 months ago committed by GitHub
parent
commit
59e37e305f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      examples/imageviewer/shared/build.gradle.kts

4
examples/imageviewer/shared/build.gradle.kts

@ -72,6 +72,10 @@ android {
defaultConfig {
minSdk = 26
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlin {
jvmToolchain(17)
}

Loading…
Cancel
Save