bilibili / MagicaSakura

MagicaSakura 是 Android 多主题框架。~ is an Android multi theme library which supporting both daily colorful theme and night theme.
http://app.bilibili.com
Apache License 2.0
3.55k stars 468 forks source link

v4 包更新版本有错误 #48

Open easyandroid opened 6 years ago

easyandroid commented 6 years ago

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 commented 6 years ago

同样遇到这个错误

fg2q1q3q commented 6 years ago

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

xyczero commented 6 years ago

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