Closed changety closed 7 years ago
我们在项目中设置过该activity的windowBackground,
麻烦确认一下这个错误是否只在miui上出现,这个callstack暂时还看不出是什么问题。 r/v/a8q.jpg 是一个什么资源文件呢?
On Sun, Oct 9, 2016 at 3:24 PM, cafecat notifications@github.com wrote:
我们在项目中设置过该activity的windowBackground
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shwenzhang/AndResGuard/issues/101#issuecomment-252470027, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbvYqtoryNowKFq1i3bJJ6Midil8zdvks5qyJa3gaJpZM4KR7jT .
r/v/a8q.jpg 就是
里面的用到drawable
是app本身带有的drawable么?因为miui有一些换肤的功能是通过全路径替换资源的,这些资源是需要加入白名单的。
我也怀疑是这个原因,也有可能是用户自行修改了这张图。 暂且把这张图加入白名单
@changety 关于此issue还有更多的线索么?
暂时关闭了,如果有新的问题请再重新打开。
Caused by: android.content.res.Resources$NotFoundException: File r/v/a8q.jpg from drawable resource ID #0x7f02053e at android.content.res.Resources.loadDrawable(Resources.java:2052) at android.content.res.MiuiResources.loadDrawable(MiuiResources.java:317) at android.content.res.Resources.getDrawable(Resources.java:696) at android.support.v4.content.ContextCompat.getDrawable(ProGuard:346) at android.support.v7.widget.AppCompatDrawableManager.getDrawable(ProGuard:197) at android.support.v7.widget.TintTypedArray.getDrawableIfKnown(ProGuard:77) at android.support.v7.app.AppCompatDelegateImplBase.(ProGuard:127) at android.support.v7.app.AppCompatDelegateImplV9.(ProGuard:147) at android.support.v7.app.AppCompatDelegateImplV11.(ProGuard:27) at android.support.v7.app.AppCompatDelegateImplV14.(ProGuard:50) at android.support.v7.app.AppCompatDelegate.create(ProGuard:201) at android.support.v7.app.AppCompatDelegate.create(ProGuard:181) at android.support.v7.app.AppCompatActivity.getDelegate(ProGuard:521) at android.support.v7.app.AppCompatActivity.onCreate(ProGuard:71)