Search code examples
xamarinxamarin.androidxamarin-studio

Cannot add packages to Xamarin Studio


I am trying to add some packages to my solution in xamarin studio like "restsharp", and I get the following error :

"Adding RestSharp... Adding 'RestSharp 104.4.0' to sibuf. Could not install package 'RestSharp 104.4.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v4.4', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author."

I tried to change MonoAndroid version and it still not working.

Please Help...


Solution

  • The RestSharp NuGet package does not include any assemblies that are compatible with Android projects.

    I would look at using RestSharp from Xamarin's Component Store instead. This component supports Android and iOS projects.