Reputation: 295
I am not able to build my Android project of Xamarin.Form. However, iOS project works fine.
I have tried by remove all DLLs from Package and Bin folders but it doesn't work.
Can anybody guide me?
Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Xamarin.iOS, Version=0.0.0.0, Culture: neutral, PublicKeyToken=84exxxxxxxx'. Perhaps it doesn't exist in the Mono for Android Profile?
Upvotes: 1
Views: 811
Reputation: 81573
Seems like some nuget package in your droid project is confused, remove them all and DLL references, and add them back one by one (this is what I'd do).
Or you could put your build verbosity on detailed and search through it and try and work it out from there.
Upvotes: 0
Reputation: 4002
Looks like your Android project is referencing some other project, which is referencing Xamarin.iOS
. Look at your projects in your solution. Each one have a References folder in Solution Explorer. Which of them contains a Xamarin.iOS
references? I bet you erroneously reference this project in your Android project
Upvotes: 0
Reputation: 16562
I suspect the issue has something to do with you by mistake adding Xamarin.iOS dll into the Android project
Since Xamarin.iOS is a native iOS dll it will not work in Xamarin.Android
Solution Under your project section for Android look for References.
Under References try to find if there is a Reference for Xamarin.iOS
If Yes then Remove it by Right clicking on the reference and selecting remove, If not then Revert
Goodluck!
Upvotes: 1