Gradle build error on the first launch of my android studio.
Asked
Active
Viewed 71 times
1
![](../../users/profiles/4168607.webp)
ADM
- 16,256
- 11
- 37
- 69
![](../../users/profiles/12058851.webp)
Omollo Cliff Oganda
- 11
- 1
-
is your internet connection working? – karan Apr 18 '20 at 06:50
-
Also please make sure you didn't do some changes in your /etc/hosts file sometimes it can mess up. Make sure that your localhost is pointing to 127.0.0.1 and not to dynamically changing ip address. – Tom Taylor Apr 18 '20 at 14:46
3 Answers
3
Check your firewall or your network configuration. When I first time launch android studio I facing the same issues, then I realized that the problem is on my firewall configuration. Gradle needs an internet connection to download the dependencies that you specify.
![](../../users/profiles/-1.webp)
Community
- 1
- 1
![](../../users/profiles/11771377.webp)
Mekel Ilyasa
- 115
- 1
- 3
- 11
0
Kindly clean your project once and again apply a Gradle build then try to resolve the Error which defined in your screenshot.
Another option is to check your dependencies in the Project structure.
![](../../users/profiles/7473046.webp)
Darshan Chauhan
- 3
- 6
0
It is due to the Firewall configuration that is causing this error , to make sure you can connect VPN to run project as it will run normally.So change your Firewall configuration.
![](../../users/profiles/8205099.webp)
Wahdat Jan
- 3,563
- 3
- 14
- 37