Last active
June 11, 2020 13:56
-
-
Save thatfiredev/c11b1306ed35da737e46b26618975aae to your computer and use it in GitHub Desktop.
Gist showing how to enable Java 8 on an Android App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
// ... all the other configurations | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 | |
} | |
} | |
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { | |
kotlinOptions { | |
jvmTarget = "1.8" | |
} | |
} | |
dependencies { | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment