Picasso IllegalArgumentException Target must not be null

后端 未结 6 834
别跟我提以往
别跟我提以往 2020-11-28 15:49

I\'m trying to set image by using Picasso library on my project.

When I click image of the View,I\'m getting an error on Picasso execution.

Logcat of the ap

6条回答
  •  独厮守ぢ
    2020-11-28 16:24

    I know this is a little bit old, but one thing that I just spent a bunch of time on is forgetting to run "setContentView" to the layout that the image was on.

    The ImageView is going to be null until the main layout that it lives on is inflated ;)

提交回复
热议问题