После нового проекта я столкнулся с ошибкой, которую не могу обработать, когда пытаюсь добавить gradle в app/build.gradle
Пожалуйста, помогите мне!
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation("com.squareup.okhttp3:okhttp:4.3.1") //that's the thing I want
}
ОШИБКА
НАСТРОЙИТЬ УСПЕШНО в 57 с ОШИБКА: невозможно разрешить зависимость для ':app@debug/compileClasspath': не удалось загрузить okhttp.jar (com.squareup.okhttp3: ok http:4.3.1) Показать подробности Затрагиваемые модули: app
ОШИБКА: невозможно разрешить зависимость для ':app@debug/compileClasspath': не удалось загрузить okio.jar (com.squareup.okio: okio: 2.4.1) Показать подробности Затронутые модули: приложение