System.NullReferenceException while performing Native2Forms.

Actually We have .Droid and .iOS project but we have some common screens, so we would like to use Forms in order to save the duplication time. We will like to navigate back and forth from Native to Forms && Forms to Native. I got this and this as a reference project.

With reference to this i tried updating my existing project. I got the System.NullReferenceException(Image attached). Here is the stack trace.

at Xamarin.Forms.Platform.Android.Platform.UpdateActionBarHomeAsUp (Android.App.ActionBar actionBar) [0x0001d] in C:\BuildAgent\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\Platform.cs:915
at Xamarin.Forms.Platform.Android.Platform.HideActionBar () [0x00006] in C:\BuildAgent\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\Platform.cs:721
at Xamarin.Forms.Platform.Android.Platform.UpdateActionBar () [0x000a0] in C:\BuildAgent\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\Platform.cs:450
at Xamarin.Forms.Platform.Android.Platform.SetPage (Xamarin.Forms.Page newRoot) [0x000bd] in C:\BuildAgent\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\Platform.cs:414
at Xamarin.Forms.Platform.Android.FormsApplicationActivity.InternalSetPage (Xamarin.Forms.Page page) [0x000b7] in C:\BuildAgent\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\FormsApplicationActivity.cs:288
at Xamarin.Forms.Platform.Android.FormsApplicationActivity.SetMainPage () [0x00000] in C:\BuildAgent\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\FormsApplicationActivity.cs:307
at Xamarin.Forms.Platform.Android.FormsApplicationActivity.LoadApplication (Xamarin.Forms.Application application) [0x0003f] in C:\BuildAgent\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android\FormsApplicationActivity.cs:110
at TrabbleCrossPlatformExperiment.Droid.Activities.FormsActivity.OnCreate (Android.OS.Bundle bundle) [0x00017] in /Users/Smit/Documents/Dev/EclipseTrabble/backups/Trabble_Native2Froms trial/TrabbleCrossPlatformExperiment/TrabbleCrossPlatformExperiment/TrabbleCrossPlatformExperiment.Droid/Activities/FormsActivity.cs:31
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState) [0x00011] in /Users/builder/data/lanes/3415/7db2aac3/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Android.App.Activity.cs:2426
at (wrapper dynamic-method) System.Object:c4d36322-bd6f-45f3-be2d-99e5ce4d0a52 (intptr,intptr,intptr)

Sign In or Register to comment.