I have a Xamarin Forms PCL project and am trying to install the beta Monkey.Robotics component. It installs OK into the iOS and Android projects, but for the PCL I get:
Adding Monkey.Robotics... Attempting to resolve dependency 'Newtonsoft.Json (≥ 6.0.8)'. Adding 'Monkey.Robotics 0.5.2' to MyApp. Could not install package 'Monkey.Robotics 0.5.2'. You are trying to install this package into a project that targets 'portable net45+win+wp80+MonoTouch10+MonoAndroid10+xamarinmac20+xamarinios10', 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.
Probably some of those targets need to be removed? How would I do that in Xamarin Studio?
Thanks
Bill
Xamarin Forms 1.4.2.6359
Xamarin Studio 5.9.3
iOS 8.9.1.3
Android 4.20.2.1
The Monkey.Robotics NuGet package does not contain any PCL assemblies, just assemblies for Android, iOS Classic and iOS Unified. So it looks like you will need to create an abstraction/interface in your PCL project and then implement that in your other platform specific projects.
Answers
The Monkey.Robotics NuGet package does not contain any PCL assemblies, just assemblies for Android, iOS Classic and iOS Unified. So it looks like you will need to create an abstraction/interface in your PCL project and then implement that in your other platform specific projects.
Thanks Matt. On Monkey.Robotics Github there an interface defined, maybe that would do the trick.
Hi!
Did you get this problem resolved?
I am using the Xamarin Studio nad can not add the Monkey.Robotics library into my project.
I had no problem working on the unzipped sample BtLeExplorer project.
I get the same error message.
Tanks