-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
插件化后Glide无法获取本地资源文件 #593
Comments
glide使用的是application context,不会用插件的context去找 |
InputStream is = recycleImageView.getResources().openRawResource((int) path); |
####下面是我修复方案####
|
错误报告
在插件化APP中使用Glide获取本地资源文件,报错无法找到。
No package found for authority: android.resource://cn.hotupdate.app.main/drawable/guide03
android.content.pm.PackageManager$NameNotFoundException: Application package cn.hotUpdate.app.main not found
主项目是cn.hotUpdate.app。,插件是.main
Glide能够正确的获取本地资源图片,或是有规避此情况的方法。
实际结果是什么?
Glide 无法获取本地资源
Small环境
Compile-time
Bundles
Runtime
The text was updated successfully, but these errors were encountered: