最近在国内多次尝试在Eclipse下更新SDK无果后,最后终于通过FQ后结束了Google服务器无法访问的噩梦。
顺着墙外的*,一并下载Google的Android Studio尝鲜,安装成功后,就遇见了第一个问题:
Error occurred during initialization of VM.
Could not reserve enough space for object heap.
Error: Could not create the Java Visual Machine.
Error: A fatal exception has occurred. Program will exit.
一个老外的博客提供了这个问题的解决方法,他说,用户需要修改下自己的Xmx值,修改步骤:
1. start
2. Control Panel
3. System
4. Advanced(Tab)
5. Environment Variables
6. System Variables
7. New
变量名:_JAVA_OPTIONS
变量值:-Xmx512M
噩梦结束,从此在Android Studio的道路上恣意徜徉。