Can we please get an updated and working Xamarin.Forms demo project? The Android project specifically has all kinds of problems. The current demo version is on Xamarin.Forms 2.0.0.6482 and as of March 2nd, 2017, the current stable version of Xamarin.Forms is 2.3.3.193 (18 versions ahead).
Building as is gets you the following error:
The "ResolveLibraryProjectImports" task failed unexpectedly.
After updating Xamarin.Forms and rebuilding, the above error goes away, but now I get these errors:
No resource identifier found for attribute 'fab_colorNormal' in package 'FormsDemo.Droid' No resource identifier found for attribute 'fab_colorPressed' in package 'FormsDemo.Droid'
These errors seem to be linked to the FloatingActionButton.dll included with the PDFNetXamarin SDK download. Apparently PDFTron for Xamarin.Android depends on this other third party project (which is another question in and of itself). So after adding a reference to the FloaingActionButton library, the above errors go away, but now I get this error:
Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.Fragment, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
At this point I’m starting to head into unfamiliar territory. The error implies that Xamarin.Android.Support.Fragment does not exist in the project and it needs to. So after adding the Xamarin.Android.Support.Fragment NuGet, the above error goes away, but now I get this error:
java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat; FormsDemo.Droid
Along with a lot of warnings about duplicates:
Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.App.FragmentManager+IOnBackStackChangedListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.App.FragmentManager+IOnBackStackChangedListenerImplementor, Xamarin.Android.Support.Fragment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. FormsDemo.Droid
I’m not totally sure how to proceed from here. All I would like is a working demo project or something else that I can use as a reference to get my project working. There is no Xamarin specific documentation and the Xamarin.Android API seems to be significantly different than the Xamarin.iOS API. I didn’t come across any showstoppers when I was working with the iOS project, but as you can see, I am having quite a few issues with the Android project. If I could get some help with this, that would be great!