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
2.1m questions
2.1m answers
60 comments
57.0k users