致命异常:主要:波纹可绘制使API 17:JellyBean 4.2.2上的应用程序崩溃

时间:2018-07-24 16:02:41

标签: android android-layout cardview

这是logcat错误:

76-31376/com.example.mt.recipes E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering 07-24 16:42:25.344 31376-31380/com.example.mt.recipes E/dalvikvm: adjustAdaptiveCoef max=4194304, min=1048576, ut=568 07-24 16:42:29.628 31376-31376/com.example.mt.recipes E/dalvikvm: Could not find class 'android.support.v4.widget.DrawerLayout$1', referenced from method android.support.v4.widget.DrawerLayout.<init> 07-24 16:42:29.638 31376-31376/com.example.mt.recipes E/dalvikvm: Could not find class 'android.view.WindowInsets', referenced from method android.support.v4.widget.DrawerLayout.onDraw 07-24 16:42:29.638 31376-31376/com.example.mt.recipes E/dalvikvm: Could not find class 'android.view.WindowInsets', referenced from method android.support.v4.widget.DrawerLayout.onMeasure 07-24 16:42:29.638 31376-31376/com.example.mt.recipes E/dalvikvm: Could not find class 'android.view.WindowInsets', referenced from method android.support.v4.widget.DrawerLayout.onMeasure 07-24 16:42:31.640 31376-31380/com.example.mt.recipes E/dalvikvm: adjustAdaptiveCoef max=4194304, min=1048576, ut=568 07-24 16:42:33.462 31376-31376/com.example.mt.recipes E/AndroidRuntime: FATAL EXCEPTION: main                                                                         android.content.res.Resources$NotFoundException: Resource ID #0x7f07008c                                                                             at android.content.res.Resources.getValue(Resources.java:1883)                                                                             at android.content.res.Resources.getDrawable(Resources.java:1520)                                                                             at android.view.View.setBackgroundResource(View.java:15327)                                                                             at com.example.mt.recipes.recipes_grid_view_adapter.getView(recipes_grid_view_adapter.java:71)                                                                             at android.widget.AbsListView.obtainView(AbsListView.java:2586)                                                                             at android.widget.GridView.makeAndAddView(GridView.java:1346)                                                                             at android.widget.GridView.makeRow(GridView.java:341)                                                                             at android.widget.GridView.fillDown(GridView.java:283)                                                                             at android.widget.GridView.fillFromTop(GridView.java:417)                                                                             at android.widget.GridView.layoutChildren(GridView.java:1234)                                                                             at android.widget.AbsListView.onLayout(AbsListView.java:2409)                                                                             at android.view.View.layout(View.java:14843)                                                                             at android.view.ViewGroup.layout(ViewGroup.java:4601)                                                                             at android.support.constraint.ConstraintLayout.onLayout(ConstraintLayout.java:1858)                                                                             at android.view.View.layout(View.java:14843)                                                                             at android.view.ViewGroup.layout(ViewGroup.java:4601)                                                                             at android.support.design.widget.HeaderScrollingViewBehavior.layoutChild(HeaderScrollingViewBehavior.java:132)                                                                             at android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)                                                                             at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1361)                                                                             at android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:874)                                                                             at android.view.View.layout(View.java:14843)                                                                             at android.view.ViewGroup.layout(ViewGroup.java:4601)                                                                             at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1172)                                                                             at android.view.View.layout(View.java:14843)                                                                             at android.view.ViewGroup.layout(ViewGroup.java:4601)                                                                             at android.widget.FrameLayout.onLayout(FrameLayout.java:448)                                                                             at android.view.View.layout(View.java:14843)                                                                             at android.view.ViewGroup.layout(ViewGroup.java:4601)                                                                             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:14843)                                                                             at android.view.ViewGroup.layout(ViewGroup.java:4601)                                                                             at android.widget.FrameLayout.onLayout(FrameLayout.java:448)                                                                             at android.view.View.layout(View.java:14843)                                                                             at android.view.ViewGroup.layout(ViewGroup.java:4601)                                                                             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:14843)                                                                             at android.view.ViewGroup.layout(ViewGroup.java:4601)                                                                             at android.widget.FrameLayout.onLayout(FrameLayout.java:448)                                                                             at android.view.View.layout(View.java:14843)                                                                             at android.view.ViewGroup.layout(ViewGroup.java:4601)                                                                             at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2206)                                                                             at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2020)                                                                             at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1230)                                                                             at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5089)                                                                             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:137)                                                                             at android.app.ActivityThread.main(ActivityThread.java:5283)                                                                             at java.lang.reflect.Method.invokeNative(Native Method)                                                                             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(Native Method)

0 个答案:

没有答案