Android PICASSO - Image Not Loading into ImageView + Stops all Statements following from occuring

后端 未结 2 585
难免孤独
难免孤独 2021-01-27 11:35

Background: I have a Picasso Statement in my java file, which reads a JSON and then formats that data to the screen. The Issue: Once my JSON has been re

2条回答
  •  孤城傲影
    2021-01-27 11:52

    Use this for old library :-

    (implementation 'com.squareup.picasso:picasso:2.5.2')
    
    Picasso.with(this).load(iconUrl).into(Tab1Fragment.weatherIcon);
    

    instead of : For new library

    (implementation 'com.squareup.picasso:picasso:2.71828')
    
    Picasso.get().load(iconUrl).into(Tab1Fragment.weatherIcon);
    

提交回复
热议问题