I am on Android 4.1 version and behind the proxy. I have already setup Proxy settings and the sdk download works fine. But when I am creating a new Project it is throwing error :
Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'. Received status code 407 from server: Proxy Authentication Required
Disable Gradle 'offline mode' and sync project
On searching Gradle Offline in the settings , I find below snapshot :
I simply clicked the url and then error comes "Disable Offline Mode"
What is the difference between the two and where these can be found in the latest Android Studio. I remember finding it easily using search in settings in older Android Studio versions but not this.
If you want to disable/enable Gradle offline mode:
To enable or disable Gradle's offline mode, first select View > Tool Windows > Gradle from the menu bar. Then, near the top of the Gradle window, click Toggle Offline Mode Gradle offline button in the Gradle panel..
Head over here for more.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With