为什么在使用Glide时无法解决此方法,也无法解析.diskstaretegy():

Glide.with(getActivity())
                .load(chalet.profilePhoto)
                .asBitmap() <--- cannot resolve this
                .diskCacheStrategy(DiskCacheStrategy.ALL) <--- cannot reslove this
                .fitCenter()
                .placeholder(R.drawable.logo).dontAnimate().into(mImageView);

我的 Gradle :-
compile 'com.github.bumptech.glide:glide:4.0.0'

最佳答案

我找到了解决方法,必须在asBitmap()之后添加with(),它才能像以前一样工作。

PS:我的Glide版本为4.7.1

关于android - Glide无法解析asBitmap(),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/46199440/

10-09 05:56
查看更多