Glide cannot resolve asBitmap()

后端 未结 7 1678
无人共我
无人共我 2020-12-17 09:35

Why I can\'t resolve this method while using Glide also I can\'t resolve .diskstaretegy() :

Glide.with(getActivity())
                      


        
相关标签:
7条回答
  • 2020-12-17 10:21

    If you getting an error, follow the steps below.

    In Glide library move .asBitmap() before the .load()

    ---------------------OR-----------------------

        Glide.with(context)
            .setDefaultRequestOptions(requestOptions)
            .asBitmap()
            .load(url)
            .into(holder.imageView);
    
    0 讨论(0)
提交回复
热议问题