NAXAM / mapboxnavigationui-android-binding

Xamarin.Android binding library - Mapbox Navigation SDK
MIT License
2 stars 5 forks source link

Error XA4212 when trying to build the project #12

Open malthuis opened 3 years ago

malthuis commented 3 years ago

When I try to build my Xamarin.Android project, I get the following error:

error XA4212: Type Com.Mapbox.Services.Android.Location.LostLocationEngine implements Android.Runtime.IJavaObject but does not inherit Java.Lang.Object or Java.Lang.Throwable. This is not supported.

I was successful mitigating this error by putting the following in my project file: `

false

`

But if I do that, the app just crashes with: "'java.exe' exited with code 1".

malthuis commented 3 years ago

Details from the build log:

Error in obj\Debug\90\lp\1\jl\gson.jar:com/google/gson/annotations/JsonAdapter.class: Type com.google.gson.annotations.JsonAdapter is defined multiple times: obj\Debug\90\lp\1\jl\gson.jar:com/google/gson/annotations/JsonAdapter.class, obj\Debug\90\lp\2\jl\gson-2.8.0.jar:com/google/gson/annotations/JsonAdapter.class

SagarPanwala commented 3 years ago

@malthuis Have you figured this out ? I'm facing same problem.