Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
687 views
in Technique[技术] by (71.8m points)

android - Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-6.7.1-all.zip'

I have just installed Android Studio. And I have this problem. Here is the screenshot. then I clicked the link and downloaded the zip file manually. Then I installed it. Now, when I type Gradle -v on Command-Line, it shows that everything is fine with Gradle. Here it is.
Android Gradle Plugin version is 3.6.3 Here is Android Gradle Plugin Version
This is the information about the Android Studio that I am using: Android Studio 4.1.1 Build #AI-201.8743.12.41.6953283, built on November 4, 2020

Runtime version: 1.8.0_242-release-1644-b01 amd64

VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Windows 10 10.0

GC: ParNew, ConcurrentMarkSweep

Memory: 1237M

Cores: 8

Registry: ide.new.welcome.screen.force=true, external.system.auto.import.disabled=true

question from:https://stackoverflow.com/questions/65546833/could-not-install-gradle-distribution-from-https-services-gradle-org-distribu

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Probably a Compatibility issue because you are using a old plugin version with latest Gradle version .

Change plugin version in Project level gradle .

classpath 'com.android.tools.build:gradle:4.1.0'

Then try to build your project . Check the Compatible version in the documentation


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...