IndexOutOfRangeException when using Rg.Plugins.Popup in xamarin forms android - xamarin

I am using Rg.plugins.popup nuget package version 2.0.0.10. I am getting PopupNavigationImpl.PopAllAsync (System.Boolean animate) System.IndexOutOfRangeException: No Page in PopupStack crash in appcenter. In code i am using await PopupNavigation.PopAllAsync(); this line getting crashed. How to resolve this issue?

Related

Why my Xamarin Parse project for Android do not compile?

When i try to compile my Xamarin project in an android device this error pops up. Tried adding the NuGet Parse package in the Andoid project but it still does not work.
Error Image

xamarin for mac couldnot create or open xamarin.form project

MarshalError: [NOTE: this exception originated in the server.]
Couldn't get signature for selector 'supportedRuntimes'
I had the same error, and it seems it was because some Mac updates (I had just updated the SO and XCode), I updated Xamarin (Xamarin Studio > Check for Updates...) and it worked just fine.

Xamarin and Xcode update to iOS 10 and "Got a SIGABRT while executing native code..."

Following my upgrade of Xamarin and Xcode to the iOS 10 updates/releases my app began failing on launch. The app never even entered the App.cs constructor for me to begin debugging.
Actual Error Message: "Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application."
After spending many hours trying to solve this problem I finally got a clue from digging through the iOS Simulator logs.
Detailed Error message:
Loaded assembly:
/Users/username/Library/Developer/CoreSimulator/Devices/BC0B1376-DDDF-4DD1-954D-1872603FA8E6/data/Containers/Bundle/Application/2AA663A3-986B-434E-83B9-E7D88A6616FE/VSProjectName.app/.monotouch-64/System.ComponentModel.DataAnnotations.dll
An unhandled exception occured.
2016-09-16 23:12:13.570 VSProjectName[5278:156681] Unhandled
Exception: System.BadImageFormatException: Could not load file or
assembly or one of its dependencies. Reference assemblies should not
be loaded for execution. They can only be loaded in the
Reflection-only loader context.
File name: 'System.ComponentModel.DataAnnotations' 2016-09-16
23:12:13.570 VSProjectName[5278:156681] Unhandled managed exception:
Could not load assembly
Answer
In one of my shared class library projects, referenced by the Xamarin.iOS project, I had a reference to the .NET 4.5 version of the System.ComponentModel.DataAnnotations.dll assembly, even though there was no code anywhere in either of these projects that was using this assembly.
The app kept crashing on launch because, this version of the System.ComponentModel.DataAnnotations.dll assembly cannot run on a mobile platform.
Removing System.ComponentModel.DataAnnotations from the list of references in the class library project solved the problem.
Please note that, prior to me upgrading to Xcode Version 8.0 (8A218a) and Xamarin 4.2.0.680 for Visual studio, this code worked fine.

System.MissingMethod Exception after upgrading to Xamarin Forms 2.2.043 on Xamarin Studio Mac

After upgrading to the new version of Xamarin forms I'm getting a System.MissingMethod exception. Help!!!!!!!!!
Screenshot is here. http://i.stack.imgur.com/vPIAx.png. I've also posted this on Xamarin Forums. Still waiting for an answere from the Xamarin team. http://forums.xamarin.com/discussion/67725/system-missingmethod-exception-after-upgrading-to-xamarin-forms-2-2-043-on-xamarin-studio-mac#latest
We just pushed a fix to NuGet (2.2.0.45). Apologies for any difficulties.

Failed to resolve assembly "Xamarin.Forms.Platform.iOS" error after adding Xamarin Forms Labs

I added Xamarin Forms Labs 1.2.O from NuGet to the iOS project. The same project also references Xamarin Forms dll, v1.3.0.6292.
After adding the Xamarin labs reference and updating AppDelegate to inherit from XFormsApplicationDelegate, I keep getting this compile time error:
MTOUCHTASK: error MT2002: Failed to resolve assembly: 'Xamarin.Forms.Platform.iOS, Version=1.2.3.0 ...
How do I resolve this issue?
When using Xamarin.Forms 1.3 you needed to update to the latest pre-release of Xamarin.Labs which is Xamarin.Forms.Labs 1.2.1-pre2.
Try updating to that to see if it works.

Resources