aditmer / NightscoutHybridMobile

A cross platform mobile app that shows your Nightscout website in a WebView.
5 stars 3 forks source link

Fix NotSupportedException in TypeManager.CreateProxy #46

Open aditmer opened 7 years ago

aditmer commented 7 years ago

Version: 1.0 (1) | com.nightscout.nightscoutmobilehybrid

Stacktrace

0 Java.Interop TypeManager CreateProxy 1 Java.Interop TypeManager CreateInstance 2 Java.Interop TypeManager CreateInstance 3 Java.Lang Object GetObject 4 Java.Lang Object _GetObject[T] 5 Java.Lang Object GetObject[T] 6 Java.Lang Object GetObject[T] 7 Android.Views View+IOnFocusChangeListenerInvoker n_OnFocusChange_Landroid_view_View_Z 8 md5b60ffeb829f638581ab2bb9b1a7f4f3f ViewRenderer_2 n_onFocusChange 9 md5b60ffeb829f638581ab2bb9b1a7f4f3f ViewRenderer_2 onFocusChange 10 android.view View onFocusChanged 11 android.webkit WebView onFocusChanged 12 android.view View handleFocusGainInternal 13 android.view ViewGroup handleFocusGainInternal 14 android.view View requestFocusNoSearch 15 android.view View requestFocus 16 android.view ViewGroup requestFocus 17 android.webkit WebView access$1001 18 android.webkit WebView$PrivateAccess super_requestFocus 19 com.android.webview.chromium WebViewChromium requestFocus 20 android.webkit WebView requestFocus 21 android.view View requestFocus 22 android.view View requestFocus 23 org.chromium.content.browser ContentViewCore filterTapOrPressEvent 24 org.chromium.base SystemMessageHandler nativeDoRunLoopOnce 25 org.chromium.base SystemMessageHandler handleMessage 26 android.os Handler dispatchMessage 27 android.os Looper loop 28 android.app ActivityThread main 29 java.lang.reflect Method invoke 30 java.lang.reflect Method invoke 31 com.android.internal.os ZygoteInit$MethodAndArgsCaller run 32 com.android.internal.os ZygoteInit main > Java.Interop.JavaLocationException 2 

Reason

android.runtime.JavaProxyThrowable: System.NotSupportedException: Unable to activate instance of type Xamarin.Forms.Platform.Android.WebViewRenderer from native handle 0xbe8023fc (key_handle 0xec0f811). ---> System.MissingMethodException: No constructor found for Xamarin.Forms.Platform.Android.WebViewRenderer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.

Link to HockeyApp