Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When an internet connection is present and I click on "check update" in Android Studio, I get "Connection Failed"

I have a valid Internet Connection. I have freshly installed Android Studio from dev.android.com

Problem: When I click check for updates, I get a "Connection failed:Please check your network connection and try again"

like image 357
Dheeraj Bhaskar Avatar asked Jan 22 '14 16:01

Dheeraj Bhaskar


People also ask

Is internet connection necessary for Android studio?

Yes, Android Studio is meant to be used offline, unless you are using git and committing all your code changes to git. One other scenario when you need the internet is when trying to use some external library/API using gradle.

How an Android app is connected to network?

Before starting your application, Android studio will display following window to select an option where you want to run your Android application. Now just click on button, It will check internet connection as well as it will download image. Out would be as follows and it has fetch the logo from internet.


2 Answers

Set "No Proxy"

Seems to be a bug.

I went to Preferences -> HTTP Proxy Set the option to "No Proxy" from "Auto-detect proxy settings"

like image 74
Dheeraj Bhaskar Avatar answered Oct 02 '22 14:10

Dheeraj Bhaskar


Another trick is to download the patch from here

enter image description here

The same as using the Help > Check for Update option.

like image 35
Ojonugwa Jude Ochalifu Avatar answered Oct 02 '22 15:10

Ojonugwa Jude Ochalifu