Reputation: 3
I just imported a project downloaded from Github but Gradle is not syncing, it is giving the error " Unknow host 'swervice.gradle.org'. You may need to adjust the proxy setting in Gradle "
I would appreciate any kind of help
Upvotes: 0
Views: 80
Reputation: 1
If you already have your HTTP Proxy details, you can chose No proxy, It will bypass the proxy settings and us the settings on your system. It worked for me
File > Settings > Appearance & Behavior > System Settings > HTTP Proxy [Select No Proxy]
Upvotes: 0
Reputation: 11989
Go to..
File > Settings > Appearance & Behavior > System Settings > HTTP Proxy [Under IDE Settings] Enable following option Auto-detect proxy settings
On Mac it's under:
Android Studio > Preferences > Appearance & Behaviour... etc
Upvotes: 1
Reputation: 528
First don't import it ! Beacuse the project maybe use another Gradle Version or use another Sdk
The best Way is Copy and Past java layout and etc from current project that you Download it to new Project.
Hope it help.
Upvotes: 0