RecyclerView与视图寻呼机

时间:2016-05-30 09:41:46

标签: android layout android-recyclerview

我有一段工作代码,当在其他机器上构建时可以工作但如果我使用我的机器构建,则适配器不会显示。没有填充适配器的元素。

我在ViewPager中有RecyclerView。

我也更新了SDK和Android Studio。

日志

05-30 16:13:15.637 17918-17918/ E/ViewRootImpl: sendUserActionEvent() mView == null

05-30 16:13:15.877 17918-17922/ D/dalvikvm: GC_CONCURRENT freed 630K, 17% free 9656K/11592K, paused 12ms+4ms, total 39ms
05-30 16:13:15.887 17918-17918/ I/dalvikvm: Could not find method android.widget.LinearLayout$LayoutParams.<init>, referenced from method android.support.design.widget.AppBarLayout$LayoutParams.<init>
05-30 16:13:15.887 17918-17918/ W/dalvikvm: VFY: unable to resolve direct method 19614: Landroid/widget/LinearLayout$LayoutParams;.<init> (Landroid/widget/LinearLayout$LayoutParams;)V
05-30 16:13:15.887 17918-17918/ D/dalvikvm: VFY: replacing opcode 0x70 at 0x0000
05-30 16:13:15.897 17918-17918/ I/dalvikvm: Could not find method android.widget.LinearLayout$LayoutParams.<init>, referenced from method android.support.design.widget.AppBarLayout$LayoutParams.<init>
05-30 16:13:15.897 17918-17918/ W/dalvikvm: VFY: unable to resolve direct method 19614: Landroid/widget/LinearLayout$LayoutParams;.<init> (Landroid/widget/LinearLayout$LayoutParams;)V
05-30 16:13:15.897 17918-17918/ D/dalvikvm: VFY: replacing opcode 0x70 at 0x0000

请帮忙

1 个答案:

答案 0 :(得分:1)

我认为你的build.gradle缺少设计依赖性,

尝试编译此依赖项

com.android.support:design:23.4.0
你的build.gradle中的