afzali afzali -4 years ago 193
Java Question

How to add dependency to Android Studio manually

I try several times to add dependency to my project and each time give error
the dependency that I want to add them are


so I want to download these and add to my project manually is it possible and if Yes How?

Here is my application's

apply plugin: ''

android {
compileSdkVersion 23
buildToolsVersion '24.0.0 rc4'

defaultConfig {
applicationId "ir.esfandune.material"
minSdkVersion 23
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), ''
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
packagingOptions {
exclude 'classes.dex'

repositories {
maven { url "" }


dependencies {
compile ''
compile ''
compile ''
compile ''
compile ''
compile ''
compile 'com.github.rey5137:material:'
compile project(':material-dialogs')
compile files('lib/de.hdodenhof/circleimageview/1.3.0/jars/classes.jar')
//*** added from orginal source
compile 'de.hdodenhof:circleimageview:1.3.0'
compile 'com.github.bumptech.glide:glide:3.6.1'

Answer Source

download the jar/aar file of your library you want

copy files into libs directory in your app folder for *.jar files: add this code to dependency on your gradle file

 compile files('libs/library.jar')

for *.aar files: try from projectstructure / new module/ import from aar/jar

good luck

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download