Skip to content Skip to sidebar Skip to footer

Can't Sync Gradle In Android Studio In Iran

I use Android Studio version 1.5.1, and I'm trying to compile 'com.android.volley:volley:1.0.0' in build.gradle, but I can't sync Gradle. I think this error is because of my Intern

Solution 1:

Yes, it's because Google has been blocked in Iran since 2012. You can use a proxy app like Shadowsocks to change your country.

After activating your proxy app, in Android Studio go to file->setting->Appearance & Behavior->System Setting->HTTP Proxy active 'Manual proxy configuration'

and set:

  • host name:127.0.0.1 (for example)
  • port name:1080 (for example)

and reset Android Studio. When Android Studio resets, activate the HTTPS proxy and sync your Gradle and it will work. ;)

Solution 2:

Certainly Google as an american company has to obey US foreign policies. Google has too many services, among them those which relate to developers are blocked. There are many ways to work around these bans using proxies and VPNs but i personally wish for changes to happen between Iran and US.

Solution 3:

you have to install any connect and set cisco username and password and restart android studio

Post a Comment for "Can't Sync Gradle In Android Studio In Iran"