Glide中的方法用不了,比如error(), fitCenter(),diskCacheStrategy()都用不了,看了下说可能是版本的问题,用的最新的glide版本,但是还是使用不了,显示未识别的can not resolve,奇怪的是如with,load,into却可以正常使用。
.error(R.drawable.bg_card) .fitCenter() .diskCacheStrategy(DiskCacheStrategy.ALL)
解决方法很简单,最新的版本使用的是GlideApp,虽然原来的glide也可以使用,但是其中的一些方法似乎只在GlideApp中才有。
The entry point for interacting with Glide for Applications
Includes all generated APIs from all