2016-05-30 119 views
0

我有一个工作的代码,当在其他机器上构建时工作,但如果我使用我的机器构建,则适配器不显示。没有适配器的元素被填充。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 

请帮

+0

嗯不能说任何没有任何logcat或一段代码,你从服务器获取数据? – Max

+0

是的,没有共享代码,因为它是从不同的机器构建而成的。 – Neji

+0

现在分享了这些日志,请检查 – Neji

回答

1

我觉得你build.gradle缺少设计的依赖,

尝试编译这种依赖性

com.android.support:design:23.4.0 

在你的build.gradle