WHat kind of issue is this?
Bug Report
This issue was already brought up here : mapbox/mapbox-gl-native#11392 and solution was going back to 1.7, this is most likely the PR that caused this issue: #770
Expected Behavior
Everything compiles while supporting lowest android sdk supported by mapbox: 14.
Current Behavior
App won't compile unless i target Android N
AGPBI: {"kind":"error","text":"Static interface methods are only supported starting with Android N (--min-api 24): com.mapbox.geojson.Geometry com.mapbox.geojson.Geometry.fromJson(java.lang.String)","sources":[{}],"tool":"D8"}
Possible Solution
- Revert support for Java8
- figure a way to maintain 1.8 support using
https://developer.android.com/studio/write/java8-support
it might be that unless library is provided as AAR those do not apply - so maybe it would make sense to provide this part of mapbox also as aar dependency for android. I am not sure if that would solve the problem though - someone would need to confirm.
Context (Environment)
Build Tools: com.android.tools.build:gradle:3.1.2
MinSdk: 21
mapBoxServicesVersion = '3.2.0'