Android崩溃ClassCastException但没有项目行

时间:2015-08-13 14:28:25

标签: android classcastexception

我的应用程序崩溃在GT-P5110 Android 4.2.2三星Tab 2平板电脑上。我目前正在搜索我的所有代码,但无法找到它的调用位置。我在这里得到了错误输出。

我无法找到导致此问题的列表视图。我甚至禁用了整个部件。有人有想法吗?

java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams
   at android.widget.ListView.setupChild(ListView.java:1872)
   at android.widget.ListView.makeAndAddView(ListView.java:1841)
   at android.widget.ListView.fillDown(ListView.java:681)
   at android.widget.ListView.fillFromTop(ListView.java:742)
   at android.widget.ListView.layoutChildren(ListView.java:1645)
   at android.widget.AbsListView.onLayout(AbsListView.java:2511)
   at android.view.View.layout(View.java:14694)
   at android.view.ViewGroup.layout(ViewGroup.java:4491)
   at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1021)
   at android.view.View.layout(View.java:14694)
   at android.view.ViewGroup.layout(ViewGroup.java:4491)
   at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:931)
   at android.view.View.layout(View.java:14694)
   at android.view.ViewGroup.layout(ViewGroup.java:4491)
   at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
   at android.view.View.layout(View.java:14694)
   at android.view.ViewGroup.layout(ViewGroup.java:4491)
   at android.support.v7.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:493)
   at android.view.View.layout(View.java:14694)
   at android.view.ViewGroup.layout(ViewGroup.java:4491)
   at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
   at android.view.View.layout(View.java:14694)
   at android.view.ViewGroup.layout(ViewGroup.java:4491)
   at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1669)
   at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1527)
   at android.widget.LinearLayout.onLayout(LinearLayout.java:1440)
   at android.view.View.layout(View.java:14694)
   at android.view.ViewGroup.layout(ViewGroup.java:4491)
   at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
   at android.view.View.layout(View.java:14694)
   at android.view.ViewGroup.layout(ViewGroup.java:4491)
   at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2200)
   at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2014)
   at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1227)
   at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4995)
   at android.view.Choreographer$CallbackRecord.run(Choreographer.java:791)
   at android.view.Choreographer.doCallbacks(Choreographer.java:591)
   at android.view.Choreographer.doFrame(Choreographer.java:561)
   at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:777)
   at android.os.Handler.handleCallback(Handler.java:725)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:175)
   at android.app.ActivityThread.main(ActivityThread.java:5279)
   at java.lang.reflect.Method.invokeNative(Method.java)
   at java.lang.reflect.Method.invoke(Method.java:511)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
   at dalvik.system.NativeStart.main(NativeStart.java)

0 个答案:

没有答案