我在我的机器上安装了最新的ADT。但是当尝试在其中创建一个新项目时,它会等待一段时间然后停止工作,显示以下错误消息:
JVM terminated. Exit code=13
/usr/bin/java
-jar /home/deathholes/ide/eclipse-adt/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/deathholes/ide/eclipse-adt/eclipse/eclipse-adt
-name Eclipse-adt
--launcher.library /home/deathholes/ide/eclipse-adt/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807/eclipse_1502.so
-startup /home/deathholes/ide/eclipse-adt/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 68a804e
-vm /usr/bin/java
-vmargs
-jar /home/deathholes/ide/eclipse-adt/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
在终端中显示以下错误消息:
Exception in thread "Worker-8" Exception in thread "Worker-6"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Worker-8"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Worker-6"
Error while logging event loop exception:
我尝试通过编辑eclipse.ini文件来增加堆和permspace,它看起来像这样:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
1024M
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:+UseParallelGC
-XX:PermSize=256M
-XX:MaxPermSize=1572M
-Xms512M
-Xmx1572M
-Declipse.buildId=v22.0.5-757759
java -version output:
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)</pre>
我正在使用Ubuntu 12.10 64位版本。 ADT是最新的,即sdk22,64位