Home » Android » Gradle not syncing

Gradle not syncing

Posted by: admin November 1, 2017 Leave a comment


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 “

enter image description here

I would appreciate any kind of help


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


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.