TorbenK / TK.CustomMap

Extended Map Control
MIT License
142 stars 109 forks source link

Unable to use the package - version conflict detected #366

Open gogolon opened 5 years ago

gogolon commented 5 years ago

Hello, I'm unable to use TkCustomMap due to a version conflict: Error NU1107 Version conflict detected for Xamarin.GooglePlayServices.Basement. Install/reference Xamarin.GooglePlayServices.Basement 60.1142.1 directly to project TravelGuide.Android to resolve this issue.

Installing the Xamarin.GooglePlayServices.Basement 60.1142.1 package doesn't help. This issue has been already mentioned twice: https://github.com/TorbenK/TK.CustomMap/issues/325 https://stackoverflow.com/questions/51127699/tkcustommap-version-conflict

Unfortunately, the solution from the stackoverflow thread didn't work for me.

Does anyone know how to fix that?

Gakk commented 4 years ago

I had the same issue, and it turned out that i still had a reference to Xamarin.Forms.Maps from before switching to TK.CustomMap. When removing the reference to Xamarin.Forms.Maps the version conflict disappeared 😃

If the version conflict comes from a package you need, you can manually add in Android project file a reference to Xamarin.GooglePlayServices.Basement. After doing that you will get an warning for another reference, and after that another one. There are 4 references you have to add, but after that it should work 😇