syn c gradle в android studio 3.6.1 - PullRequest
2 голосов
/ 14 марта 2020

Я попытался синхронизировать c проект android в android studio 3.6.1, теперь он показывает ОШИБКУ

, вызванную: org.gradle.api.internal.artifacts.ivyservice. DefaultLenientConfiguration $ ArtifactResolveException: Не удалось разрешить все артефакты для конфигурации ': classpath'.

AND

Причина: org.gradle.internal.resolve.ModuleVersionNotFoundException: Не удалось найти com. android .tools.build: gradle: 3.6.1.

Мой gradle-wrapper.properties

#Sat Mar 14 13:13:04 IRST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip

Мой build.gradle

// Top-level build file where you can add configuration options common to all 
sub-projects/modules.

buildscript {

repositories {
    mavenLocal()
    google()
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.6.1'


    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
    }
}

allprojects {
repositories {
    google()
    jcenter()

}
}

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