2016-07-28 32 views
0

I com.loopj.android:android-async-http:1.4.9 in ProjectStructure hinzufügen (AndroidStudio 2.1.2) Aber wenn graddle Skript-Sync-i erhalten Fehlerkann nicht importiert android-Asynchron-http in Android Studio

Failed to resolve: com.loopj.android:android-async-http:1.4.9 

app/build.gradle:

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 24 
    buildToolsVersion "21.1.2" 

    defaultConfig { 
     applicationId "ru.fvds.suhanov.timetable" 
     minSdkVersion 18 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

repositories { 
    mavenCentral() 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    /*testCompile 'junit:junit:4.12'*/ 
    compile 'com.android.support:appcompat-v7:24.0.0' 
    compile 'com.loopj.android:android-async-http:1.4.9' 
} 

Hilfe, androidasync jar Link

+0

können Sie App compact 'com.android.support:appcompat-v7:23.4.0' als diese verwenden. lass mich wissen, was du bekommst – DKV

+0

Ich hatte das versucht, aber es funktioniert nicht –

Antwort

0

herunterladen jar-Datei bitte

dann mit der rechten Maustaste auf App-Verzeichnis öffnen Moduleinstellungen

+0

Ich hatte das versucht, alles funktioniert. Vielen Dank –