
Add the following lines, replacing the placeholders with your actual proxy details: How can I use gradlew (the Gradle wrapper) behind a proxy?
The most reliable method is to configure your proxy settings in the global gradle.properties file. This ensures that every Gradle project on your machine can access the internet. download gradle wrapper behind proxy
Find or create this file at ~/.gradle/gradle.properties (macOS/Linux) or C:\Users\ \.gradle\gradle.properties (Windows). Add the following lines, replacing the placeholders with