In the guides you only mention Xamarin Studio. Is it possible to use Kinvey with Visual Studio?
This may be related to [this](https://support.kinvey.com/discussion/201272598/exception-on-adding-kinvey-package-from-nuget#latest "Exception on Adding Kinvey Package from Nuget").
I have two projects and I am trying to use Xamarin Forms. When I Search for kinvey in Manage Nuget packages in Visual Studio this is my results:
This does not follow the guild very well. Which projects do I need to install these to? Do I only need one of them? Is there a iOS one as well?
Kinvey-Xamarin installs to both the iOS and android package fine. I have not tested them yet though. Kinvey-Xamarin-Android gives a error that is below if you try to install in the android package.
Could not install package 'Kinvey-Android 1.2.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v2.2', 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.
Thanks for any help on this :D
Hey, what do you mean by `This does not follow the guild very well`? Just curious, I haven't heard that before.
You probably only need Kinvey-Xamarin. Check out this link for more info on setting up the Portable Class Library Reference Assemblies in Visual Studio: http://developer.xamarin.com/guides/cross-platform/application_fundamentals/pcl/introduction_to_portable_class_libraries/#Requirements
Also, `Kinvey-Xamarin` contains the core functionality for the library and is packaged into a PCL. `Kinvey-Xamarin-Android` contains Push Notification functionality specifically for Android, and in the future will contain more platform specific code. `Kinvey-Xamarin-iOS` does not exist yet-- but it is on the roadmap, and will contain APN push notification support.
I actually wrote a blog about the approach I took, take a look and let me know what you think: http://engineering.kinvey.com/2015/03/11/cross-platform-mobile-libraries-with-c-extension-methods-and-xamarin/
And lastly, for `Kinvey-Android`, this is in visual studio right? What version of Android are you targetting?
over 4 years ago
Sorry, really bad grammar and not reading over what I put. The point I meant to make was this: The guide confused me on how to install the packages. I am not sure what "Add SQLite.Net PCL - Android Platform (replace Android with your target environment)" means. The only stuff I saw was the Kinvey-Xamarin, so I am guessing installing that is what you mean by "Add Kinvey".
The blog explains alot of stuff very well so thanks for the link.
I am running into some build library issues that I cannot document right this second. I will have to take another look at it tomorrow and I will give you more information then. I cannot seem to get the project to compile with iOS once I add the package. I am guessing it has something to do with the Xamarin build host? Not sure. I will look at it more tomorrow.
Minimum target for android is 15, but it compiles with 19. It is visual studio ultimate 2013 version 12.0.31101.00 Update 4.
Thanks for the reply,
over 4 years ago
Can you try building with Android 5.0? I think that might be the issue. We use GCM for push notification support, and that requires the Google Play Services component. I couldn't get the component to install with a lower version of Android.
If this works, I'll update the docs. Thanks!
Add this to your manifest.xml: