Android Studio Check for Update Connection failed
2015-01-04 10:15
316 查看
windows下的解决方法:
如果是运行的是32位的android studio需要在andriod studio的启动目录下找到studio.exe.vmoptions这个文件。
如果是64位的就找到studio64.exe.vmoptions这个文件。
在后面加上:
-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/
重启studio即可解决问题。
.vmoptions这个文件会被studio动态修改,所以下次再进行更新若还会提示网络连接失败,需要重新加上上面三句话。
如果是运行的是32位的android studio需要在andriod studio的启动目录下找到studio.exe.vmoptions这个文件。
如果是64位的就找到studio64.exe.vmoptions这个文件。
在后面加上:
-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/
重启studio即可解决问题。
.vmoptions这个文件会被studio动态修改,所以下次再进行更新若还会提示网络连接失败,需要重新加上上面三句话。
相关文章推荐
- Android Studio升级提示 Connection failed. Please check your network ...
- Android Studio Check for Update
- android studio check for update 更新失败
- android studio check for update 更新失败
- android studio升级时提示 Connection failed. Please check your network connection and try again
- android studio Execution failed for task ':app:mergeDebugResources' Error: 前言中不允许有内容
- Mac OS中, android stuido升级提示Connection failed. Please check your network connection and try again
- Android Studio Execution failed for task ':app:transformClassesWithInstantRunForDebug'
- Android Studio Gradle project refresh failed No such property classpath for class
- Gradle project refresh failed after AndroidStudio update
- Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE Please check logcat output for more details.
- Android Studio Error:Execution failed for task ':***:compileDebugJavaWithJavac'问题解决办法
- Android Studio Gradle project refresh failed No such property classpath for class
- Android 报错:Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
- Android Studio Error:Execution failed for task
- Android Studio Error:Execution failed for task ':xxxxx:mergeDebugResources'
- AndroidStudio Error:Execution failed for task ':app:transformClassesWithDexForDebug'. 錯誤解決方法
- 兔子--Android Studio出现错误:Error:Execution failed for task ':myapp:dexDebug'. com.android.ide.common.pro
- android studio Error:Execution failed for task ':app:dexDebug'.解决