Skip to content

Commit

Permalink
Downgrade Java version to 1.8 and set kotlin JVM target 1.8 to fix co…
Browse files Browse the repository at this point in the history
…mpilation issues in newer android studios (#368)

Compiling the android app in newer android studios was failing because
it was trying to use jvm 21, which isn't compatible. Additionally as
@JayShortway, we were using a higher version of Java that we should. We
were mostly ok, but this brings the levelt to the same as our native
android SDK and other hybrids.
  • Loading branch information
tonidero authored Dec 5, 2024
1 parent 471346c commit 1edc31d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ android {
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}

Expand Down

0 comments on commit 1edc31d

Please sign in to comment.