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