Skip to content
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.

Android app crashes upon launch with an unhandled exception #19

Open
manishkungwani opened this issue Sep 30, 2019 · 1 comment
Open

Comments

@manishkungwani
Copy link

manishkungwani commented Sep 30, 2019

Getting the following exception:

Unhandled Exception:


System.TypeLoadException: <Timeout exceeded getting exception details>

09-30 18:42:05.083 D/Mono    (19200): DllImport attempting to load: '/system/lib/liblog.so'.
09-30 18:42:05.084 D/Mono    (19200): DllImport loaded library '/system/lib/liblog.so'.
09-30 18:42:05.084 D/Mono    (19200): DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so').
09-30 18:42:05.084 D/Mono    (19200): Searching for '__android_log_print'.
09-30 18:42:05.084 D/Mono    (19200): Probing '__android_log_print'.
09-30 18:42:05.084 D/Mono    (19200): Found as '__android_log_print'.
09-30 18:42:05.089 I/MonoDroid(19200): UNHANDLED EXCEPTION:
09-30 18:42:05.130 I/MonoDroid(19200): System.TypeLoadException: Could not load type of field 'Xamarin.Forms.Platform.Android.RendererPool:_freeRenderers' (0) due to: Could not resolve type with token 0100027b from typeref (expected class 'System.Collections.Generic.Stack`1' in assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e') assembly:mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e type:System.Collections.Generic.Stack`1 member:(null)
09-30 18:42:05.130 I/MonoDroid(19200):   at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in d:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:110 
09-30 18:42:05.130 I/MonoDroid(19200):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in d:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:439 
09-30 18:42:05.130 I/MonoDroid(19200):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000d5] in d:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:233 
09-30 18:42:05.130 I/MonoDroid(19200):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in d:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:127 
09-30 18:42:05.130 I/MonoDroid(19200):   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Support.V4.App.FragmentManager fragmentManager, Android.Content.Context context) [0x00031] in d:\a\1\s\Xamarin.Forms.Platform.Android\Platform.cs:391 
09-30 18:42:05.130 I/MonoDroid(19200):   at Xamarin.Forms.Platform.Android.AppCompat.FragmentContainer.OnCreateView (Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState) [0x00008] in d:\a\1\s\Xamarin.Forms.Platform.Android\AppCompat\FragmentContainer.cs:56 
09-30 18:42:05.130 I/MonoDroid(19200):   at Android.Support.V4.App.Fragment.n_OnCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_inflater, System.IntPtr native_container, System.IntPtr native_savedInstanceState) [0x00020] in <fefee6c2c695459088a9df092723e052>:0 
09-30 18:42:05.130 I/MonoDroid(19200):   at (wrapper dynamic-method) System.Object.36(intptr,intptr,intptr,intptr,intptr)
09-30 18:42:05.140 W/nAzureChalleng(19200): JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable
09-30 18:42:05.142 D/Mono    (19200): DllImport searching in: '__Internal' ('(null)').
09-30 18:42:05.142 D/Mono    (19200): Searching for 'java_interop_jnienv_throw'.
09-30 18:42:05.142 D/Mono    (19200): Probing 'java_interop_jnienv_throw'.
09-30 18:42:05.142 D/Mono    (19200): Found as 'java_interop_jnienv_throw'.
Unhandled Exception:

System.TypeLoadException: Could not load type of field 'Xamarin.Forms.Platform.Android.RendererPool:_freeRenderers' (0) due to: Could not resolve type with token 0100027b from typeref (expected class 'System.Collections.Generic.Stack`1' in assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e') assembly:mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e type:System.Collections.Generic.Stack`1 member:(null)

09-30 18:42:08.184 E/mono    (19200): 
09-30 18:42:08.184 E/mono    (19200): Unhandled Exception:
09-30 18:42:08.184 E/mono    (19200): System.TypeLoadException: Could not load type of field 'Xamarin.Forms.Platform.Android.RendererPool:_freeRenderers' (0) due to: Could not resolve type with token 0100027b from typeref (expected class 'System.Collections.Generic.Stack`1' in assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e') assembly:mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e type:System.Collections.Generic.Stack`1 member:(null)
09-30 18:42:08.184 E/mono    (19200):   at (wrapper dynamic-method) System.Object.36(intptr,intptr,intptr,intptr,intptr)
09-30 18:42:08.184 E/mono    (19200):   at (wrapper native-to-managed) System.Object.36(intptr,intptr,intptr,intptr,intptr)
09-30 18:42:08.184 E/mono-rt (19200): [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type of field 'Xamarin.Forms.Platform.Android.RendererPool:_freeRenderers' (0) due to: Could not resolve type with token 0100027b from typeref (expected class 'System.Collections.Generic.Stack`1' in assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e') assembly:mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e type:System.Collections.Generic.Stack`1 member:(null)
09-30 18:42:08.184 E/mono-rt (19200):   at (wrapper dynamic-method) System.Object.36(intptr,intptr,intptr,intptr,intptr)
09-30 18:42:08.184 E/mono-rt (19200):   at (wrapper native-to-managed) System.Object.36(intptr,intptr,intptr,intptr,intptr)
@Xonshiz
Copy link

Xonshiz commented Oct 3, 2019

Just googled the error you're getting.... Would suggest reading through these 2 links :

StackOverflow Answer

Github Open Issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants