Ich habe Android Studio Version 2.1.2 in meinem System installiert und wenn ich irgendwelche Abhängigkeiten in der Gradle-Datei dann I get failed to resolve error
hinzufügen.Android Studio - Gradle konnte Abhängigkeiten nicht auflösen
It happen the all the libraries likes Picasso not only for Junit
Also versuchte ich Proxy-Einstellung in gradle.properties
Datei
systemProp.http.proxyHost=http://xxxx/xxx
systemProp.http.proxyPort=80
systemProp.https.proxyHost=http://xxxx/xxx
systemProp.https.proxyPort=80
aber ich bekomme die folgende Fehlermeldung hinzuzufügen:
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not resolve junit:junit:4.12.
Required by:
MyApplication2:app:unspecified
> Could not resolve junit:junit:4.12.
> Could not get resource 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
> Could not GET 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
> http://xxxx/xxx
Wie dieses Problem zu beheben, bitte helfen Sie, dass auf.
build.gradle Datei:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.example.muraliathmarao.myapplication"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
}
Kannst du deine bulid.gradle posten? – nshmura
@nshmura, build.gradle hinzugefügt in Frage –
Ich vermute, Sie müssen hinter der Firewall sein (wie Zscaler). Wenn das so ist, dann müssen Sie cacert (SSL-Zertifikat) in Java importieren und das Android Studio neu starten. Überprüfen Sie diesen Link, wenn es hilft http://javarevisited.blogspot.in/2012/03/add-list-certficates-java-keystore.html – dudego