mapbox / mapbox-unity-sdk

Mapbox Unity SDK - https://www.mapbox.com/unity/
Other
725 stars 210 forks source link

Unity SDK compatibility issues. #1836

Open emmaw1 opened 2 years ago

emmaw1 commented 2 years ago

I'm having compatibility issues as the SDK uses the following versions:

Duplicate class okhttp3.CacheControl found in modules okhttp-3.12.13.jar (com.squareup.okhttp3:okhttp:3.12.13) and okhttp-3.8.0.jar (okhttp-3.8.0.jar)

Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.1.0-runtime.jar (androidx.core:core:1.1.0) and support-compat-25.1.0-runtime.jar (:support-compat-25.1.0:)

And Okio,

Another service I'm using depends on the more recent versions. Is there a newer SDK available please?

DevNMY commented 2 years ago

Mapbox is shipping a set of android plugins with the sdk. You will find them in this directory:

image

if you are using other versions of the plugins you should uncheck their include option via:

image

Now your version of the plugin will be used.

If the versions you are using are compatible with mapbox 2.1.1 is another question. But it's woth a try :-)