Meituan-Dianping / Meituan-Dianping/Robust
glide 冲突
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.5k
- Forks
- 806
- PR merge metrics
- No merged PRs in 30d
Description
异常类型:app运行时异常
Robust版本:0.4.82
Gradle版本:2.14.1
系统:如:Mac
assembleRelase编译通过,但是run起来之后crash了的,发现图片都没有显示出来。日志如下:
java.lang.IllegalStateException: You cannot call Glide.get() in registerComponents(), use the provided Glide instance instead
在没有接入robust的前一个我们自己的git commit是可以的。
robust.xml 里面也配置了的:
<exceptPackname name="exceptPackage">
<name>com.bumptech.glide</name>
proguard
##--------------------------- glide ---------------------------
-keep class com.bumptech.glide.GeneratedAppGlideModuleImpl { *; }
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public class * extends com.bumptech.glide.module.AppGlideModule { *; }
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
**[] $VALUES;
public *;
}
##--------------------------- glide ---------------------------
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the crash after assembleRelase and inspect the registerComponents() path mentioned in the exception, along with robust.xml and the Glide ProGuard rules shown here. Compare behavior with the pre-Robust commit; the issue is done when the app launches without this IllegalStateException and images display correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100