0

I recently update to com.squareup.picasso:picasso:2.71828 from com.squareup.picasso:picasso:2.5.2.But while trying to run or build project got an error as Picasso.with couldn't be resolved.

Try to build or run project after

1.Clean project

2.invalid cache and restart

But still got the same. But if its revert back to com.squareup.picasso:picasso:2.5.2 to make everything work fine. Is this known bug or any solution for this bug for com.squareup.picasso:picasso:2.71828 version?

Manzurul Hoque Rumi
  • 2,911
  • 4
  • 20
  • 43
Subin Babu
  • 1,515
  • 2
  • 24
  • 50

3 Answers3

1

They have changed the API. Take a look

https://github.com/square/picasso/commit/e7e919232fe2b15772a7fcd9e15ead2304c66fae

Here is the example:

Picasso.get().load("http://i.imgur.com/DvpvklR.png").into(imageView);
Manzurul Hoque Rumi
  • 2,911
  • 4
  • 20
  • 43
1

From this answer.

Picasso syntax has been changed in latest update. and we need to use like:

Picasso.get().load("your_url").into(your_imageview);

For latest Picasso update, you can always visit here.

Rumit Patel
  • 8,830
  • 18
  • 51
  • 70
1

use Picasso.get().load("ImageUrlHere").into(imageView); for more see here Picasso

xbadal
  • 1,284
  • 2
  • 11
  • 24