Skip to content

Commit

Permalink
Fix crash on release builds emansih#192
Browse files Browse the repository at this point in the history
Issue is due to using source and target compatibility with Java 11
  • Loading branch information
emansih committed Jan 15, 2022
1 parent 7e38879 commit 7821e48
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ android {
versionNameSuffix "-debug"
minifyEnabled false
}
// Do not use `JavaVersion.VERSION_11`! Will cause issues on `release` builds due to Proguard
// Needs more investigation before using 11. See issue #192
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions.jvmTarget = JavaVersion.VERSION_11
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
}

buildFeatures {
Expand Down

0 comments on commit 7821e48

Please sign in to comment.