从设置更改显示大小时,应用崩溃

时间:2019-02-02 02:01:55

标签: xamarin xamarin.forms xamarin.android

我正在将xamarin表单和平板电脑模拟器与SO Nougat 7.0配合使用,并尝试更新显示尺寸,但是如果应用程序在此之前运行并且再次输入,则应用程序将崩溃并显示下一条消息

Fatal Exception: java.lang.IllegalArgumentException: No view found for id 0xc0 (unknown) for fragment FragmentContainer{ccebd66 #0 id=0xc0}
   at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1413)
   at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1750)
   at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1819)
   at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:797)
   at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2590)
   at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2377)
   at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2332)
   at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2239)
   at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:700)
   at android.os.Handler.handleCallback(Handler.java:790)
   at android.os.Handler.dispatchMessage(Handler.java:99)
   at android.os.Looper.loop(Looper.java:164)
   at android.app.ActivityThread.main(ActivityThread.java:6494)
   at java.lang.reflect.Method.invoke(Method.java)
   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

如果我再次打开该应用程序,则显示尺寸正确,可以看到更大或更小的图像,但是我无法摆脱崩溃。

0 个答案:

没有答案