我的 Xamarin Forms Android 应用(发布模式)在Galaxy Note 8 (奥利奥8.0)上崩溃。它显示飞溅并立即死亡。以下是我在控制台仪表板上收到的崩溃日志。但是我找不到原因。它在AppCenter崩溃报告开始之前就死了。因此,这是我得到的唯一日志。知道这里有什么问题吗?
_________
android.runtime.JavaProxyThrowable: at Xamarin.Forms.Platform.Android.AppCompat.Platform.LayoutRootPage (Xamarin.Forms.Page page, System.Int32 width, System.Int32 height) [0x00034] in <99988d4ab8d144898ef5bc7586876d75>:0 at Xamarin.Forms.Platform.Android.AppCompat.Platform.Xamarin.Forms.Platform.Android.IPlatformLayout.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x0000a] in <99988d4ab8d144898ef5bc7586876d75>:0
at Xamarin.Forms.Platform.Android.PlatformRenderer.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00018] in <99988d4ab8d144898ef5bc7586876d75>:0
at Android.Views.ViewGroup.n_OnLayout_ZIIII (System.IntPtr jnienv, System.IntPtr native__this, System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00008] in <88e8d1026f2645cab4d71803e1b2caba>:0
at (wrapper dynamic-method) System.Object.268905bf-8ee6-4d7b-ac7e-88443c1482d9(intptr,intptr,bool,int,int,int,int)
at md51558244f76c53b6aeda52c8a337f2c37.PlatformRenderer.n_onLayout (Native Method)
at md51558244f76c53b6aeda52c8a337f2c37.PlatformRenderer.onLayout (PlatformRenderer.java:55)
at android.view.View.layout (View.java:20841)
at android.view.ViewGroup.layout (ViewGroup.java:6401)
at android.widget.RelativeLayout.onLayout (RelativeLayout.java:1080)
at android.view.View.layout (View.java:20841)
at android.view.ViewGroup.layout (ViewGroup.java:6401)
at android.widget.FrameLayout.layoutChildren (FrameLayout.java:323)
at android.widget.FrameLayout.onLayout (FrameLayout.java:261)
at android.view.View.layout (View.java:20841)
at android.view.ViewGroup.layout (ViewGroup.java:6401)
at android.widget.FrameLayout.layoutChildren (FrameLayout.java:323)
at android.widget.FrameLayout.onLayout (FrameLayout.java:261)
at android.view.View.layout (View.java:20841)
at android.view.ViewGroup.layout (ViewGroup.java:6401)
at android.widget.FrameLayout.layoutChildren (FrameLayout.java:323)
at android.widget.FrameLayout.onLayout (FrameLayout.java:261)
at android.view.View.layout (View.java:20841)
at android.view.ViewGroup.layout (ViewGroup.java:6401)
at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1791)
at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1635)
at android.widget.LinearLayout.onLayout (LinearLayout.java:1544)
at android.view.View.layout (View.java:20841)
at android.view.ViewGroup.layout (ViewGroup.java:6401)
at android.widget.FrameLayout.layoutChildren (FrameLayout.java:323)
at android.widget.FrameLayout.onLayout (FrameLayout.java:261)
at com.android.internal.policy.DecorView.onLayout (DecorView.java:944)
at android.view.View.layout (View.java:20841)
at android.view.ViewGroup.layout (ViewGroup.java:6401)
at android.view.ViewRootImpl.performLayout (ViewRootImpl.java:2911)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2598)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1742)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7763)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:911)
at android.view.Choreographer.doCallbacks (Choreographer.java:723)
at android.view.Choreographer.doFrame (Choreographer.java:658)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:897)
at android.os.Handler.handleCallback (Handler.java:789)
at android.os.Handler.dispatchMessage (Handler.java:98)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6940)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)
答案 0 :(得分:0)
我相信Bejasc提出的清理和删除obj和bin目录并创建新发行版的建议将解决您的问题。我在Nougat和Oreo上的Samsung Galaxy Note 8设备上运行的版本遇到了相同的崩溃。贝雅克的建议解决了他们。