我将ConstraintLayout库从1.1.2升级到1.1.3,并在应用程序启动时不断得到它:
---------崩溃开始 10-26 17:21:44.811 22224 22224 E AndroidRuntime:FATAL EXCEPTION:main 10-26 17:21:44.811 22224 22224 E AndroidRuntime:进程:com.motiv.providerRepository.alpha,PID:22224 10-26 17:21:44.811 22224 22224 E AndroidRuntime:java.lang.ClassCastException:android.widget.LinearLayout $ LayoutParams无法转换为android.support.constraint.ConstraintLayout $ LayoutParams 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.constraint.ConstraintLayout.getTargetWidget(ConstraintLayout.java:1144) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.constraint.ConstraintLayout.setChildrenConstraints(ConstraintLayout.java:994) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.constraint.ConstraintLayout.updateHierarchy(ConstraintLayout.java:803) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.constraint.ConstraintLayout.onMeasure(ConstraintLayout.java:1561) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1148) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.widget.LinearLayout.onMeasure(LinearLayout.java:687) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:位于android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1514) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.widget.LinearLayout.measureVertical(LinearLayout.java:806) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.widget.LinearLayout.onMeasure(LinearLayout.java:685) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.constraint.ConstraintLayout.internalMeasureChildren(ConstraintLayout.java:1227) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.constraint.ConstraintLayout.onMeasure(ConstraintLayout.java:1572) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.constraint.ConstraintLayout.internalMeasureChildren(ConstraintLayout.java:1227) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.constraint.ConstraintLayout.onMeasure(ConstraintLayout.java:1572) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:位于android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1514) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.widget.LinearLayout.measureVertical(LinearLayout.java:806) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.widget.LinearLayout.onMeasure(LinearLayout.java:685) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.v4.widget.NestedScrollView.measureChildWithMargins(NestedScrollView.java:1502) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.widget.FrameLayout.onMeasure(FrameLayout.java:185) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.v4.widget.NestedScrollView.onMeasure(NestedScrollView.java:556) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:位于android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1514) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.widget.LinearLayout.measureVertical(LinearLayout.java:806) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.widget.LinearLayout.onMeasure(LinearLayout.java:685) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1638) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:位于android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1514) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.widget.LinearLayout.measureVertical(LinearLayout.java:806) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.widget.LinearLayout.onMeasure(LinearLayout.java:685) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1638) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.constraint.ConstraintLayout.internalMeasureChildren(ConstraintLayout.java:1227) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.support.constraint.ConstraintLayout.onMeasure(ConstraintLayout.java:1572) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.widget.FrameLayout.onMeasure(FrameLayout.java:185) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:位于android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1514) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.widget.LinearLayout.measureVertical(LinearLayout.java:806) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.widget.LinearLayout.onMeasure(LinearLayout.java:685) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.811 22224 22224 E AndroidRuntime:在android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6928) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:在android.widget.FrameLayout.onMeasure(FrameLayout.java:185) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:在com.android.internal.policy.DecorView.onMeasure(DecorView.java:898) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:at android.view.View.measure(View.java:23279) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:在android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2873) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:在android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1910) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:在android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2165) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:在android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1779) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:在android.view.ViewRootImpl $ TraversalRunnable.run(ViewRootImpl.java:7810) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:at android.view.Choreographer $ CallbackRecord.run(Choreographer.java:911) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:at android.view.Choreographer.doCallbacks(Choreographer.java:723) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:at android.view.Choreographer.doFrame(Choreographer.java:658) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:在android.view.Choreographer $ FrameDisplayEventReceiver.run(Choreographer.java:897) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:at android.os.Handler.handleCallback(Handler.java:789) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:at android.os.Handler.dispatchMessage(Handler.java:98) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:at android.os.Looper.loop(Looper.java:164) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:在android.app.ActivityThread.main(ActivityThread.java:6938) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:at java.lang.reflect.Method.invoke(本机方法) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:在com.android.internal.os.Zygote $ MethodAndArgsCaller.run(Zygote.java:327) 10-26 17:21:44.812 22224 22224 E AndroidRuntime:在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
此日志中没有任何内容,因为它看起来像是系统问题。 另外,我不会像崩溃报告中所说的那样手动投下视图持有人。
我试图清理,分析问题,但一无所获。
在具有8.0 Android的三星S8上看到的问题。
有什么想法吗?
谢谢