android运行时错误。报错如下:
java.lang.NoSuchMethodError: No virtual method diskCacheStrategy(Lcom/bumptech/glide/load/engine/DiskCacheStrategy;)Lcom/bumptech/glide/request/BaseRequestOptions; in class Lcom/bumptech/glide/request/RequestOptions; or its super classes (declaration of 'com.bumptech.glide.request.RequestOptions' appears in /data/app/com.dlc.mytestttt-2/base.apk)
解决方法:
错误原因
glide版本不一致
跟换版本即可
implementation 'com.github.bumptech.glide:glide:4.6.1' //glide // implementation 'com.github.bumptech.glide:glide:4.9.0'