“Check update” is not working in android studio

2020-07-03 07:37发布

I have tried to "check update" in android studio

Help>Check for Updates

but it says

Connection failed. Please check your network connection and try again

But my Internet is working fine. .I've also tried to switch off my firewall. Is this bug of google service?

7条回答
【Aperson】
2楼-- · 2020-07-03 08:18

I had the same problem. To fix I had to manually download a newer version from https://developer.android.com/studio/.

I'm currently running Android Studio 3.2.1 and it updates fine.

Also, in Preferences > Appearance & Behavior > System Settings > HTTP Proxy make sure that Auto-detect proxy settings is checked.

Check Screenshot

查看更多
迷人小祖宗
3楼-- · 2020-07-03 08:22

I tried no proxy option at both office and home network.

At home, "Check Update" works fine, but getting the error you mentioned with office network.

To avoid this error, you need to provide the proxy details from your office IT administrator.

查看更多
狗以群分
4楼-- · 2020-07-03 08:27

start the android studio as administrator. that helps me in android studio whenever updates/installations are failed.

查看更多
Melony?
5楼-- · 2020-07-03 08:28

Update : Whenever updates | installations are failed, start the android studio as administrator.

Old Answer: This is possibly a bug of Android Studio.

The following steps may help to fix this issue:

  1. Open configuration

  2. Select Settings

  3. Select HTTP Proxy

  4. Set to use no proxy

  5. Restart Andriod studio

查看更多
混吃等死
6楼-- · 2020-07-03 08:28

Maybe you can try: Settings -> System settings -> HTTP Proxy -> auto-detect proxy settings.

查看更多
老娘就宠你
7楼-- · 2020-07-03 08:30

It doesn't seem to be a bug. I can confirm that the update worked perfectly fine on my home network. When on my office network, trying to update gives a connection error.

Must have something to do with the firewall...or some service that's not Checked to handle connections based on domain/home/public policies.

查看更多
登录 后发表回答