Home > Blockchain >  Android Studio is giving me an error because of Gradle
Android Studio is giving me an error because of Gradle

Time:10-16

I'm a newbie at Android Studio and I'm getting my feet wet with basic projects. When I launch Android Studio I immediately get the error shown in the code below.

Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-7.0.2-bin.zip'.

Why does it do it? How can I solve this? This is the version of Gradle that I have installed in my machine.


Welcome to Gradle 7.2!

Here are the highlights of this release:
 - Toolchain support for Scala
 - More cache hits when Java source files have platform-specific line endings
 - More resilient remote HTTP build cache behavior

For more details see https://docs.gradle.org/7.2/release-notes.html


------------------------------------------------------------
Gradle 7.2
------------------------------------------------------------

Build time:   2021-08-17 09:59:03 UTC
Revision:     a773786b58bb28710e3dc96c4d1a7063628952ad

Kotlin:       1.5.21
Groovy:       3.0.8
Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM:          11.0.12 (Homebrew 11.0.12 0)
OS:           Mac OS X 11.6 aarch64

I already tried other solutions but those did't work for me. One of the solutions I tried was this: link That didn't work! Thank you. Have a nice day.

  • Allennick

CodePudding user response:

I found out the solution...kinda though. I switched to intelliJIDEA and now it seems to work without problems after changing the version of gradle from 31 to 30 in gradle.settings. If someone can give me an explanation on how to do this in Android Studio it could be very useful, thanks.

CodePudding user response:

You can try this solution maybe? https://programmerah.com/could-not-install-gradle-distribution-29866/

  • Related