码迷,mamicode.com
首页 > 移动开发 > 详细

java.lang.NoSuchMethodError: No static method setLayoutDirection(Landroid/graphics/drawable/Drawable;I)V in class Landroid/support/v4/graphics/drawable/DrawableCompat

时间:2016-07-06 18:02:17      阅读:2164      评论:0      收藏:0      [点我收藏+]

标签:

 

Bug:

java.lang.NoSuchMethodError: No static method setLayoutDirection(Landroid/graphics/drawable/Drawable;I)V in class Landroid/support/v4/graphics/drawable/DrawableCompat;
然后出现了这个:java.lang.NoClassDefFoundError: android.support.v7.widget.RecyclerView$SavedState

 

解决办法:

修改gradle中内容:

compile (‘com.android.support:support-v4:23.4.0‘){
  force = true;
}
compile(‘com.android.support:recyclerview-v7:23.4.0‘) {
  exclude module: ‘support-v4‘
}

问题解决。

 

参考:

http://stackoverflow.com/questions/37423493/error-inflating-class-collapsingtoolbarlayout

 

java.lang.NoSuchMethodError: No static method setLayoutDirection(Landroid/graphics/drawable/Drawable;I)V in class Landroid/support/v4/graphics/drawable/DrawableCompat

标签:

原文地址:http://www.cnblogs.com/liyiran/p/5647509.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!