Hovhannes
07/23/2021, 1:59 PMmkrussel
07/23/2021, 2:09 PMBase64
was added in Java 8, so you can only use it on API versions that have Java 8.
Android provides desugaring to get a lot of the Java 8 API usable on old devices, but I do not see Base64
in that list.
https://developer.android.com/studio/write/java8-support-tableHovhannes
07/23/2021, 2:12 PMcompileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
mkrussel
07/23/2021, 2:15 PMSteve Peters
07/23/2021, 7:01 PMandroid.util.Base64
instead. That gets you back to Froyo.