Closed malokuS closed 6 years ago
Same issues
Sorry for the slow reply on this issue. I will fix this and other outstanding issues in a couple of weeks when I complete my current project.
@tbaggett take your time as for right now I have paused the implementation of XFGloss. Would love to hear back when this gets fixed 😄
+1
Are there any fixes or workarounds for this issue?
This library is awesome, keep up the good work!
+1 this library is very useful , but I have same exception:(
@tbaggett Any news on this, i have the same error. Appreciate looking into this. Thanks.
Hi all, again, apologies that I haven't had time to investigate this. I'm wrapping up a 6 month contract this week, so I will have time to look into this and other requests next week.
Just remove the Init line (Xamarin 2.3.4.270):
//XFGloss.Droid.Library.Init(this, savedInstanceState);
We got the same issue for a specific device: Galaxy J1 Ace, Android 5.1, armeabi-v7a.
Would be great if there is a fix for this.
Today I got this on another device too: Lenovo A536, Android 4.4.2. With XF 2.5.0.91635 & Xamarin.Android.Support.* 26.1.0.1.
@tbaggett Any time to have a look at this yet? Appreciate it.
Hi. Today I got this with a Samsung S5 running API19 XF 2.5.0
My workarounds for this issue:
try
{
XFGloss.Droid.Library.Init(this, bundle);
}
catch (Exception e)
{
var assembly = AppDomain.CurrentDomain.GetAssemblies().SingleOrDefault(a => a.FullName.StartsWith("Xamarin.Forms.Core", StringComparison.InvariantCultureIgnoreCase));
var registrarType = assembly.GetType("Xamarin.Forms.Internals.Registrar") ?? assembly.GetType("Xamarin.Forms.Registrar");
var registrarProperty = registrarType.GetProperty("Registered", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Public);
var registrar = registrarProperty.GetValue(registrarType, null);
var registerMethod = registrar.GetType().GetRuntimeMethod("Register", new[] { typeof(Type), typeof(Type) });
registerMethod.Invoke(registrar, new object[] { typeof(Xamarin.Forms.Switch),
typeof(XFGloss.Droid.Renderers.XFGlossSwitchCompatRenderer) });
}
Hi all, please try the newly-released 1.1.0 version of XFGloss and let me know if it resolves this issue. It adds support for Netstandard 2.0 and Xamarin.Forms 2.5. Thanks!
FYI, it has been confirmed this issue still exists with the new version in issue #23. I will investigate further..
Thanks to @Demarik 's suggested workaround, I hopefully have a fix! I found a device that I could reproduce the issue on. I modified the code to attempt my original approach first, then attempt their workaround. The workaround took care of the issue on that device. Version 1.1.1 coming in a bit.
Version 1.1.1.83 is released. It should be available on nuget.org as soon as their caching catches up. Please give it a try to see if it resolves this issue. Thanks again to @Demarik for their fix!
Hi! First of all you have an awesome project ongoing!
Tried to implement XFGloss in my current project with these properties:
Called Init() after LoadAplication() like this:
But I get this error:
Any resolution?