Проблема с добавлением Volley в Android Studio 3.1.2 - PullRequest
0 голосов
/ 01 мая 2018

Я хочу добавить Volley в свой проект в Android Studio 3.1.2. Я пытаюсь с implementation 'com.android.volley:volley:1.1.0'.

и вот Gradle для проекта:

buildscript {
    ext.kotlin_version = '1.2.41'
    repositories {
         google()
         jcenter()
    }
    dependencies {
         classpath 'com.android.tools.build:gradle:3.1.2'
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }
        mavenCentral()
        maven {
            url "https://maven.google.com"
            name 'Google'
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Но происходит сбой при следующих ошибках:

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.volley:volley:1.1.0.
Open File
Show Details


Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.volley:volley:1.1.0.
Open File
Show Details


Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.volley:volley:1.1.0.
Open File
Show Details


Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.volley:volley:1.1.0.
Open File
Show Details


Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.volley:volley:1.1.0.
Open File
Show Details

и вот изображение ошибок, надеющихся дать лучшее понимание проблемы. enter image description here

Что мне здесь не хватает?

1 Ответ

0 голосов
/ 01 мая 2018

Оказывается, Invalidate Caches / Restart делает свое дело!

...