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:
Then sync again and it's OK.