gradle-wrapper.properties 파일을 변경하십시오 (이미지 아래).
이것에 (당신의 gradle이 인 경우 com.android.tools.build:gradle:3.0.1
)
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip // this version or above|
Gradle 용
com.android.tools.build:gradle:3.2.1
이것을 사용하십시오
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
최신 정보
다음 등급의 경우
com.android.tools.build:gradle:3.0.1
com.android.tools.build:gradle:3.1.0
com.android.tools.build:gradle:3.2.1
com.android.tools.build:gradle:3.3.2
com.android.tools.build:gradle:3.4.0
com.android.tools.build:gradle:3.5.0
com.android.tools.build:gradle:4.0.1
다음 URL 사용
//
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
//
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
//
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
//
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
//
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
//
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
//
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
google()
buildscript 저장소에 추가하는 것을 잊지 마십시오 .