我正在尝试在Linux(Ubuntu 12.04)上使用Android Studio,但是当我想创建一个新的Android项目时,在终端中出现了以下结果,Android卡在“应用程序名称”的加载组件上:
到目前为止,我已将此行添加到 /etc/environment 文件中。
Exception in thread "Performance watcher"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Performance watcher"
Exception in thread "AWT-XAWT"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "AWT-XAWT"
到目前为止,我已将此行添加到 /etc/environment 文件中。
JAVA_TOOL_OPTIONS="-Xmx1024m -XX:MaxPermSize=512m -Xms512m"
并将此行添加到 /etc/profile 文件中
_JAVA_OPTIONS = -Xms1024m -Xmx1024m
我有超过1 GB的剩余内存空间,但仍然出现“java.lang.OutOfMemoryError”的错误!那我该怎么办?