Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle failed to resolve library in Android Studio

I want to include a library in Android Studio , but it displays error like below :

"Failed to resolve:com.lemonlab:expandable-button-menu:1.0.0"

How to fix this problem?

    apply plugin: 'com.android.application'      android {         compileSdkVersion 21         buildToolsVersion '21.1.2'          defaultConfig {             applicationId "ayowes.com.newecampus"             minSdkVersion 15             targetSdkVersion 21             versionCode 1             versionName "1.0"         }         buildTypes {             release {                 minifyEnabled false                 proguardFiles getDefaultProguardFile('proguard-android-ptimize.txt'), 'proguard-rules.txt'             }         }     }      dependencies {         compile fileTree(dir: 'libs', include: ['*.jar'])         compile 'com.android.support:appcompat-v7:21.0.3'         compile 'com.google.android.gms:play-services:6.5.87'         compile 'com.lemonlab:expandable-button-menu:1.0.0'         compile files('libs/pinchzoom.jar')     } 
like image 788
M. Johnson Avatar asked Feb 13 '15 06:02

M. Johnson


1 Answers

You go File->Settings->Gradle Look at the "Offline work" inbox, if it's checked u uncheck and try to sync again I have the same problem and i try this , the problem resolved. Good luck !

like image 59
Nhat Pham Avatar answered Sep 28 '22 19:09

Nhat Pham