Troubleshooting Android Studio upgrade failure prompts Connection failed method

Source: Internet
Author: User

On this issue, looked up a lot of places, found that the solution is similar, but more or less some problems or not clear. With regard to solutions in Windows systems, there are basically no problems, which are modified as follows:

Append the following lines to the Android Studio installation directory "/bin/studio.exe.vmoptions" file


-djava.net.preferipv4stack=true
-didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml
-didea.patches.url=http://dl.google.com/android/studio/patches/

But it's a bit of a note that the 64-bit system should modify the "/bin/studio64.exe.vmoptions" file.
The following main instructions are to modify the upgrade issue in the Mac:

In the Mac and Linux versions, the solutions available online are almost always modified as follows:
Modify environment variables directly:


$ export required_jvm_args= "-didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml- Didea.patches.url=http://dl.google.com/android/studio/patches/"
$ bin/studio

This method has been tried many times to fail. Finally have to find a way to solve the problem, found that the following changes to resolve this issue:

In "/applications/android Studio.app", right click "Show Package Content", open "/bin/idea.vmoptions" file, follow the content that joins in Windows, namely:

-djava.net.preferipv4stack=true
-didea.updates.url=http://dl.google.com/android/studio/patches/updates.xml
-didea.patches.url=http://dl.google.com/android/studio/patches/
After saving exit, reopen Android Studio,check for Updates ... You can see the upgrade prompt.

Note: This method is only to explore their own attempt on this machine feasible, unofficial provision, failure not to spray, thank you! A

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.