0

It might be possible that this question looks smiler to this:

link 1
link 2

But I didn't get what I want. I'm Creating a simple custom image gallery app in which I'm showing images on GridView. And for this I took help from this Post. In which they said how to add UniversalImageLoader library. But unfortunately I'm not able to add this library as it is mentioned. I have tried this also. I want to add this UniversalImageLoader library in my project. Thanks in advance.

Community
  • 1
  • 1
Pre_hacker
  • 1,352
  • 1
  • 17
  • 21

4 Answers4

1

You have to add the library(.jar) in the libs folder and then add the reference for the same in the build.gradle.

This can be done by two ways:

1>By manually adding it to dependencies using

compile files('libs/libray_name.jar')

2>Or by right clicking on the jar and selecting the option "add as library".

For more detailed steps do visit this page on UIL.

Anirudh Sharma
  • 7,968
  • 13
  • 40
  • 42
0

Just follow This link to add a library in Android studio. Hope it will help you.

Tara
  • 2,598
  • 1
  • 21
  • 30
0

You can just paste this line of code in your build.gradle file

compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'

for using the universal image loader library.

Lakhwinder Singh
  • 6,799
  • 4
  • 25
  • 42
0

You can add a library into a project by simple steps described here.

or you can follow this method

First one is easy and accurate.

Community
  • 1
  • 1
Karan Khurana
  • 575
  • 8
  • 20