You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried it in my own solution, getting an error: Java.Lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.TypedArray android.content.Context.obtainStyle…
Then I cloned just clonned this repo and executed Demo.Droid on Nexus 4 with Lollipop.
An unhandled exception occured.
07-12 14:03:33.344 E/mono-rt (20815): [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'NativeCode.Mobile.AppCompat.FormsAppCompat.AppCompatFormsActivity' from assembly 'NativeCode.Mobile.AppCompat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
07-12 14:03:33.344 E/mono-rt (20815): at (wrapper managed-to-native) System.MonoType:GetMethodsByName (System.MonoType,string,System.Reflection.BindingFlags,bool,System.Type)
07-12 14:03:33.344 E/mono-rt (20815): at System.MonoType.GetMethodImpl (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x0000a] in :0
07-12 14:03:33.344 E/mono-rt (20815): at System.Type.GetMethod (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00052] in :0
07-12 14:03:33.344 E/mono-rt (20815): at System.Type.GetMethod (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000] in :0
07-12 14:03:33.344 E/mono-rt (20815): at System.Delegate.GetCandidateMethod (System.Type type, System.Type target, System.String method, BindingFlags bflags, Boolean ignoreCase, Boolean throwOnBindFailure) [0x000a4] in :0
07-12 14:03:33.344 E/mono-rt (20815): at System.Delegate.CreateDelegate (System.Type type, System.Type target, System.String method, Boolean ignoreCase, Boolean throwOnBindFailure) [0x00017] in :0
07-12 14:03:33.344 E/mono-rt (20815): at System.Delegate.CreateDelegate (System.Type type, System.Type target, System.String method) [0x00000] in :0
07-12 14:03:33.344 E/mono-rt (20815): at Android.Runtime.JNIEnv.RegisterJniNatives (IntPtr typeName_ptr, Int32 typeName_len, IntPtr jniClass, IntPtr methods_ptr, Int32 methods_len) [0x001f9] in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:153
The text was updated successfully, but these errors were encountered:
That looks like the error from Xamarin Android 5.1.4. You can verify your version with the following:
Visual Studio: Help -> About Microsoft Visual Studio, scroll down and look for the Xamarin.Android version. 5.1.3.1 currently works without issue, anything higher than that currently has issues (please see the PSA in the README).
Xamarin Studio: Help -> About -> Show Details.
If you can't downgrade, you can set the Linker option to None in the project properties. However, you'll find that you can't debug your Android app (this is not due to the library itself).
If you're currently running 5.1.3 and are still having issues, please let me know.
I´ll try it in an emulator running Lollipop. I already heard about another issue (resource not found) that happens only in Nexus devices with Lollipop.
Unfortunately, I don't have access to a Nexus 4 but I did run it successfully on a Nexus 7 tablet with 5.1.1 and it ran on the Xamarin Android Player. Please let me know if you run into further problems.
I tried it in my own solution, getting an error: Java.Lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.TypedArray android.content.Context.obtainStyle…
Then I cloned just clonned this repo and executed Demo.Droid on Nexus 4 with Lollipop.
An unhandled exception occured.
07-12 14:03:33.344 E/mono-rt (20815): [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'NativeCode.Mobile.AppCompat.FormsAppCompat.AppCompatFormsActivity' from assembly 'NativeCode.Mobile.AppCompat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
07-12 14:03:33.344 E/mono-rt (20815): at (wrapper managed-to-native) System.MonoType:GetMethodsByName (System.MonoType,string,System.Reflection.BindingFlags,bool,System.Type)
07-12 14:03:33.344 E/mono-rt (20815): at System.MonoType.GetMethodImpl (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x0000a] in :0
07-12 14:03:33.344 E/mono-rt (20815): at System.Type.GetMethod (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00052] in :0
07-12 14:03:33.344 E/mono-rt (20815): at System.Type.GetMethod (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000] in :0
07-12 14:03:33.344 E/mono-rt (20815): at System.Delegate.GetCandidateMethod (System.Type type, System.Type target, System.String method, BindingFlags bflags, Boolean ignoreCase, Boolean throwOnBindFailure) [0x000a4] in :0
07-12 14:03:33.344 E/mono-rt (20815): at System.Delegate.CreateDelegate (System.Type type, System.Type target, System.String method, Boolean ignoreCase, Boolean throwOnBindFailure) [0x00017] in :0
07-12 14:03:33.344 E/mono-rt (20815): at System.Delegate.CreateDelegate (System.Type type, System.Type target, System.String method) [0x00000] in :0
07-12 14:03:33.344 E/mono-rt (20815): at Android.Runtime.JNIEnv.RegisterJniNatives (IntPtr typeName_ptr, Int32 typeName_len, IntPtr jniClass, IntPtr methods_ptr, Int32 methods_len) [0x001f9] in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:153
The text was updated successfully, but these errors were encountered: