Gradle sync failed: Could not install Gradle distribution from xxx

I recently upgraded Android Studio and started compiling an error:
Gradle sync failed: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-7.0.2-bin.zip'. (192 ms)

Obviously there is this version of gradle, that is to say, it cannot be found.
Finally, it was found that it was a problem with the studio configuration!
Look at the configuration diagram:
looking at the red circle

Then sync again and it's OK.

Guess you like

Origin blog.csdn.net/fwt336/article/details/122928617