Issue
before i'm use build version gradle 26 but after change buildtoolsversion to 27 like as this image
I am using android studio 4.2.2 recently i update all my dependency and
sourceCompatibility JavaVersion.VERSION_1_10
targetCompatibility JavaVersion.VERSION_1_10
to
compileOptions {
sourceCompatibility kotlin_version
targetCompatibility kotlin_version
}
after update i am getting this error please help
error : error build gradle screenshot
Solution
After hours of struggling, I solved it by including the following within app/build.gradle:
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
https://github.com/mapbox/mapbox-gl-native/issues/11378
Answered By - Obakeng Molebatsi
Answer Checked By - Marie Seifert (JavaFixing Admin)