0

So I have added this dependency in my Android project:

implementation ('com.squareup.picasso:picasso:2.71828') {
    exclude group: 'com.android.support'
    exclude module: ['exifinterface', 'support-annotations']
}

I am unable to call any method in Picasso. All I can see after putting a . (dot) after Picasso in my code are these

enter image description here

However, I then created a fresh new Android project and then tried to use Picasso, and it worked. I don't know what is the issue with the current one. Also, kindly mention in the comments if I need to provide more information regarding my project, such as my build.gradle file.

Thanks!

Cizzl
  • 324
  • 2
  • 11

2 Answers2

0

If clean, rebuild or Invalidate cashes and restart do not help you, you can use Glide library. Find about Glide in attached link: https://github.com/bumptech/glide

0

I was doing a silly mistake. I was trying to call the Picasso methods inside my Activity class, but outside all the methods of the class. I then called the methods inside my onCreate() method. I hope this answer helps someone who is doing the same mistake.