

在调用glide接口时,因为最新版本为4.8.0
调用代码如下:
repositories {
mavenCentral()
google()
}
dependencies {
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
}
运行发现App结果:open app again

后来换成4.0.0版本:
调用代码更改为:
repositories {
mavenCentral()
}
dependencies {
implementation 'com.github.bumptech.glide:glide:4.0.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'
}
发现运行正常:

在Android Studio中使用Glide 4.8.0进行网络图片加载时,遇到App运行异常,表现为频繁提示需要再次打开应用。通过将Glide版本回退到4.0.0,问题得到解决,应用运行恢复正常。
2382

被折叠的 条评论
为什么被折叠?



