Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

MasterDetailPage MasterBehavior.SplitOnLandscape NotFoundException: Resource ID #0x0

$
0
0

I am having problem tracking the source of following exception on Android (no test on iOS):

When I set my MasterDetailPage mode to MasterBehavior.SplitOnLandscape and launch OR ROTATE device to portrait position I get exception (full stacktrace below).
When I use Page in landscape mode, it works OK, all icons are displayed, etc.
Looks like some layouting problem when menu is hidden.

I have no clue where to look for this error.
I even stopped populating menu - no items, but it didn't help.
Updated to Forms 1.5, no change.

09-23 14:49:18.139 I/mono-stdout( 6418): TabletMenuPage ctor end
09-23 14:49:18.199 D/Mono ( 6418): Assembly Ref addref Xamarin.Forms.Platform.Android[0x7deab2e8] -> Xamarin.Android.Support.v4[0x7dea98f8]: 2
09-23 14:49:18.259 I/dalvikvm( 6418): Could not find method android.view.ViewGroup., referenced from method md5282f1122c1313907b9bf274dd2c2f344.PlatformRenderer.
09-23 14:49:18.259 W/dalvikvm( 6418): VFY: unable to resolve direct method 9351: Landroid/view/ViewGroup;. (Landroid/content/Context;Landroid/util/AttributeSet;II)V
09-23 14:49:18.259 D/dalvikvm( 6418): VFY: replacing opcode 0x70 at 0x0000
09-23 14:49:18.319 D/Mono ( 6418): Assembly Ref addref Xamarin.Forms.Platform[0x7deabfd8] -> Xamarin.Forms.Core[0x7deaa5e8]: 6
09-23 14:49:18.369 I/dalvikvm( 6418): Could not find method android.view.ViewGroup., referenced from method md5282f1122c1313907b9bf274dd2c2f344.MasterDetailContainer.
09-23 14:49:18.369 W/dalvikvm( 6418): VFY: unable to resolve direct method 9351: Landroid/view/ViewGroup;. (Landroid/content/Context;Landroid/util/AttributeSet;II)V
09-23 14:49:18.369 D/dalvikvm( 6418): VFY: replacing opcode 0x70 at 0x0000
09-23 14:49:18.619 I/dalvikvm( 6418): Could not find method android.widget.ImageView., referenced from method md5282f1122c1313907b9bf274dd2c2f344.FormsImageView.
09-23 14:49:18.619 W/dalvikvm( 6418): VFY: unable to resolve direct method 9784: Landroid/widget/ImageView;. (Landroid/content/Context;Landroid/util/AttributeSet;II)V
09-23 14:49:18.619 D/dalvikvm( 6418): VFY: replacing opcode 0x70 at 0x0000
09-23 14:49:18.689 I/dalvikvm( 6418): Could not find method android.view.ViewGroup., referenced from method md5282f1122c1313907b9bf274dd2c2f344.PageContainer.
09-23 14:49:18.689 W/dalvikvm( 6418): VFY: unable to resolve direct method 9351: Landroid/view/ViewGroup;. (Landroid/content/Context;Landroid/util/AttributeSet;II)V
09-23 14:49:18.689 D/dalvikvm( 6418): VFY: replacing opcode 0x70 at 0x0000
09-23 14:49:18.860 W/ResourceType( 6418): No package identifier when getting value for resource number 0x00000000
09-23 14:49:18.870 D/Mono ( 6418): DllImport attempting to load: '/system/lib/liblog.so'.
09-23 14:49:18.870 D/Mono ( 6418): DllImport loaded library '/system/lib/liblog.so'.
09-23 14:49:18.870 D/Mono ( 6418): DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so').
09-23 14:49:18.870 D/Mono ( 6418): Searching for '__android_log_print'.
09-23 14:49:18.870 D/Mono ( 6418): Probing '__android_log_print'.
09-23 14:49:18.870 D/Mono ( 6418): Found as '__android_log_print'.
09-23 14:49:18.870 I/MonoDroid( 6418): UNHANDLED EXCEPTION:
09-23 14:49:18.890 I/MonoDroid( 6418): Android.Content.Res.Resources+NotFoundException: Exception of type 'Android.Content.Res.Resources+NotFoundException' was thrown.
09-23 14:49:18.890 I/MonoDroid( 6418): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw ()
09-23 14:49:18.890 I/MonoDroid( 6418): at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (intptr,intptr,intptr,Android.Runtime.JValue) [0x00084] in /Users/builder/data/lanes/1978/f98871a9/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:1029
09-23 14:49:18.890 I/MonoDroid( 6418): at Android.Runtime.JNIEnv.FinishCreateInstance (intptr,intptr,intptr,Android.Runtime.JValue
) [0x0000b] in /Users/builder/data/lanes/1978/f98871a9/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:306
09-23 14:49:18.890 I/MonoDroid( 6418): at Android.Support.V4.App.ActionBarDrawerToggle..ctor (Android.App.Activity,Android.Support.V4.Widget.DrawerLayout,int,int,int)
09-23 14:49:18.890 I/MonoDroid( 6418): at Xamarin.Forms.Platform.Android.Platform.GetNewMasterDetailToggle ()
09-23 14:49:18.890 I/MonoDroid( 6418): at Xamarin.Forms.Platform.Android.Platform.UpdateMasterDetailToggle (bool)
09-23 14:49:18.890 I/MonoDroid( 6418): at Xamarin.Forms.Platform.Android.Platform.UpdateActionBar ()
09-23 14:49:18.890 I/MonoDroid( 6418): at Xamarin.Forms.Platform.Android.Platform.SetPage (Xamarin.Forms.Page)
09-23 14:49:18.890 I/MonoDroid( 6418): at Xamarin.Forms.Platform.Android.FormsApplicationActivity.InternalSetPage (Xamarin.Forms.Page)
09-23 14:49:18.890 I/MonoDroid( 6418): at Xamarin.Forms.Platform.Android.FormsApplicationActivity.SetMainPage ()
09-23 14:49:18.890 I/MonoDroid( 6418): at Xamarin.Forms.Platform.Android.FormsApplicationActivity.LoadApplication (Xamarin.Forms.Application)
09-23 14:49:18.890 I/MonoDroid( 6418): at SCM.App.Droid.MainActivity.OnCreate (Android.OS.Bundle) [0x00041] in SCM.App.Droid\MainActivity.cs:36
09-23 14:49:18.890 I/MonoDroid( 6418): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/1978/f98871a9/source/monodroid/src/Mono.Android/platforms/android-22/src/generated/Android.App.Activity.cs:2741
09-23 14:49:18.890 I/MonoDroid( 6418): at (wrapper dynamic-method) object.d27c4d2a-09bf-4001-8438-0d58ae3c3439 (intptr,intptr,intptr)
09-23 14:49:18.890 I/MonoDroid( 6418): --- End of managed exception stack trace ---
09-23 14:49:18.890 I/MonoDroid( 6418): android.content.res.Resources$NotFoundException: Resource ID #0x0
09-23 14:49:18.890 I/MonoDroid( 6418): at android.content.res.Resources.getValue(Resources.java:2350)
09-23 14:49:18.890 I/MonoDroid( 6418): at android.content.res.Resources.getDrawable(Resources.java:1915)
09-23 14:49:18.890 I/MonoDroid( 6418): at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:321)
09-23 14:49:18.890 I/MonoDroid( 6418): at android.support.v4.app.ActionBarDrawerToggle.(ActionBarDrawerToggle.java:277)
09-23 14:49:18.890 I/MonoDroid( 6418): at android.support.v4.app.ActionBarDrawerToggle.(ActionBarDrawerToggle.java:229)
09-23 14:49:18.890 I/MonoDroid( 6418): at md5f999d6a052d112c82b5faaadb5fc01d7.MainActivity.n_onCreate(Native Method)
09-23 14:49:18.890 I/MonoDroid( 6418): at md5f999d6a052d112c82b5faaadb5fc01d7.MainActivity.onCreate(MainActivity.java:29)
09-23 14:49:18.890 I/MonoDroid( 6418): at android.app.Activity.performCreate(Activity.java:5451)
09-23 14:49:18.890 I/MonoDroid( 6418): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
09-23 14:49:18.890 I/MonoDroid( 6418): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2377)
09-23 14:49:18.890 I/MonoDroid( 6418): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2471)
09-23 14:49:18.890 I/MonoDroid( 6418): at android.app.ActivityThread.access$900(ActivityThread.java:175)
09-23 14:49:18.890 I/MonoDroid( 6418): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
09-23 14:49:18.890 I/MonoDroid( 6418): at android.os.Handler.dispatchMessage(Handler.java:102)
09-23 14:49:18.890 I/MonoDroid( 6418): at android.os.Looper.loop(Looper.java:146)
09-23 14:49:18.890 I/MonoDroid( 6418): at android.app.ActivityThread.main(ActivityThread.java:5602)
09-23 14:49:18.890 I/MonoDroid( 6418): at java.lang.reflect.Method.invokeNative(Native Method)
09-23 14:49:18.890 I/MonoDroid( 6418): at java.lang.reflect.Method.invoke(Method.java:515)
09-23 14:49:18.890 I/MonoDroid( 6418): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
09-23 14:49:18.890 I/MonoDroid( 6418): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
09-23 14:49:18.890 I/MonoDroid( 6418): at dalvik.system.NativeStart.main(Native Method)
09-23 14:49:18.900 D/AndroidRuntime( 6418): Shutting down VM


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>