Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4 包更新版本有错误 #48

Open
easyandroid opened this issue Mar 1, 2018 · 3 comments
Open

v4 包更新版本有错误 #48

easyandroid opened this issue Mar 1, 2018 · 3 comments

Comments

@easyandroid
Copy link

easyandroid commented Mar 1, 2018

compile "com.android.support:appcompat-v7:${rootProject.ext.supportVersion}" compile "com.android.support:design:${rootProject.ext.supportVersion}" compile "com.android.support:gridlayout-v7:${rootProject.ext.supportVersion}"
在demo里面 ,把rootProject.ext.supportVersion 有25.3.1 升级到27.1.0 的时候ThemeUtils ``的getWrapperDrawable方法报错。
public static Drawable getWrapperDrawable(Drawable drawable) { if (drawable instanceof android.support.v4.graphics.drawable.DrawableWrapper) { return ((android.support.v4.graphics.drawable.DrawableWrapper) drawable).getWrappedDrawable(); } else if (drawable instanceof android.support.v7.graphics.drawable.DrawableWrapper) { return ((android.support.v7.graphics.drawable.DrawableWrapper) drawable).getWrappedDrawable(); } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && drawable instanceof android.graphics.drawable.DrawableWrapper) { return ((android.graphics.drawable.DrawableWrapper) drawable).getDrawable(); } return drawable; } v4下的DrawableWrapper找不到。是升级版本的原因吗?

@fg2q1q3q
Copy link

同样遇到这个错误

@fg2q1q3q
Copy link

@easyandroid 换到27.0.0吧哥们,起码可以避免这个错误,估计这个主体框架没人维护了

@xyczero
Copy link
Member

xyczero commented Apr 23, 2018

27.1.x support 库移除了若干相关类,现已适配,请升级到0.1.9-beta3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants