Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.IllegalArgumentException: already added Lokio/AsyncTimeout

I am trying to get the MapBox component working in my Xamarin app.

At first I was just referencing a mapbox.dll in my references in my Android project. Using that method, the app would crash when trying to inflate a layout containing mapbox.

I dereferenced the mapbox.dll and added the mapbox component to my Android project in hopes that it will fix my problem. However, at compile time I am now getting this error:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: java.lang.IllegalArgumentException: already added :  Lokio/AsyncTimeout; (IM.Droid)

I have dereferenced the previous mapbox.dll, deleted it, cleaned, deleted all the obj and bin directories... still getting the same error.

Any help would be appreciated.

like image 402
Hart Russell Avatar asked Jun 21 '16 21:06

Hart Russell


1 Answers

Remove ModernHttpClient reference from droid project.

like image 67
Tarık Özgün Güner Avatar answered Nov 03 '22 11:11

Tarık Özgün Güner