I am using Visual Studio 2015 Update 3 to write a Xamarin cross-platform app for Android and iOS. I need to make use of a 3rd party SDK written in Java for functionality related to Push messaging. For the Android side of the solution, I have tried many, many things (over the course of days now), but have not been successful. I would like to solve for the following solution:
- Have a PCL/Portable "myApp" library for common code/UI features.
- Have the PCL/Portable library reference a "myApp.Android" assembly for Android-specific code.
- Have the "myApp.Android" library reference a "myApp.Android.BindSDK" assembly for wrapping/binding to the 3rd party SDK.
The myApp.Android.BindSDK assembly should (I believe): - Use Xamarin's binding features to bind/wrap/include my 3rd party's SDK written in Java.
It has late bound dependencies on classes/functionality from Google Play services. - Use NuGet to include Xamarin.GooglePlayServices.Gcm into the ".Android.BindSDK" project.
Ever since including Google Play Services to the myApp.Android.BindSDK project via NuGet, I get the following compilation error:
error APT0000: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
I have tried a lot of things posted on forums like cleaing the solution, deleting bin and obj folders, extracting the version.xml file from the JAR inside the AAR for Google Play, etc, etc, etc. It still gets this build error.
Does anyone have a good example of how to create a Xamarin binding wrapper for an android/Java SDK that (itself) has dependencies on Google Play Services?