Problem

Gradle sync failed: Could not install Gradle distribution

Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-8.3-bin.zip'.
Reason: java.net.SocketTimeoutException: Connect timed out

Solution
This gradle error is occurs due to low internet speed, you can solve it by clicking try again to resync grade but if your internet still slow so goto chrome browser or any other browser and search gradle services or https://services.gradle.org/distributions/ and then download your required gradle zip file then unzip the file the open it copy the path then goto android studio settings the Build, Execution, Deployment then Built Tools then Gradle select distribution as local installation from dropdown menu and the past that copied path here then click ok apply ok then click on try again to resync the gardle file.