Loading the Picasso Library into your app build

  • Written by  Clive

Loading the Picasso library into your Android Studio project

Picasso is a powerful image downloading and caching library package which you include in your app build. It simplifies working with images, reducing the code that you need to use to one line of code.

Picasso is fast and easy to use.

Picasso takes care of all your image processing for you. It can also download images. 

We're using the Picasso Library in one of our tutorials. If you need help loading the library into your Android Studio project, then here's a quick tutorial for you.

Picasso is a free Open Source Library. You can download it from the official Picasso website.

As of the time of writing, this is how you can load the Picasso library into your app build.

Android Picasso Library screenshot 1

Select File>Project Structure

Android Picasso Library screenshot 2

Click on your app name under Modules in the left pane

Android Picasso Library screenshot 5

Click on the Dependencies tab then click on the plus (+) top-right

Android Picasso Library screenshot 3

Select Library dependency from the pop-up menu on the right

Android Picasso Library screenshot 4

Select Picasso from the list. Press OK, then Apply and OK on the next window to close the Project Structure window

Android Picasso Library screenshot 6

In the Project window on the left, click on build.gradle (the one in your app directory)

Android Picasso Library screenshot 7

Look in the dependencies() method for the com.squareup:picasso line and edit it so that it looks like the following image

Android Picasso Library screenshot 8

You should include .picasso so that the line looks like the one above

Android Studio syncGradle screenshot

Press the Sync Project with Gradle files button (circled in yellow)

That’s it!

You’re now ready to use Picasso. Just import it like you would any other class.

I hope that you have found this tutorial helpful.