2016-05-30 110 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