jberkel/android-plugin — Issue #84: Building default project gives OutOfMemoryError: PermGen space
Author: glenviewjeff
Created: 2011-11-11 16:12:52+00:00
State: open

I just created a fresh Android project and got an out of memory error:

```
> g8.bat jberkel/android-app -b sbt-0_11

Template for Android apps in Scala

package [my.android.project]:
name [My Android Project]:
main_activity [MainActivity]:
api_level [10]:

Applied jberkel/android-app.g8 in my-android-project

> sbt android:package-debug
[info] Loading project definition from D:\Workspaces\nf\my-android-project\project\plugins
[info] Updating {file:/D:/Workspaces/nf/my-android-project/project/plugins/}default-a55fc3...
[info] Done updating.
[info] Compiling 1 Scala source to D:\Workspaces\nf\my-android-project\project\target\scala_2.9.1\classes...
[info] Set current project to My Android Project (in build file:/D:/Workspaces/nf/my-android-project/)
[info] Wrote D:\Workspaces\nf\my-android-project\target\src_managed\main\scala\my\android\project\TR.scala
[info] Updating {file:/D:/Workspaces/nf/my-android-project/}My Android Project...
[info] Done updating.
[info] Compiling 2 Scala sources and 1 Java source to D:\Workspaces\nf\my-android-project\target\scala-2.9.0-1\classes...
ProGuard, version 4.6
ProGuard is released under the GNU General Public License. You therefore
must ensure that programs that link to it (scala, ...)
carry the GNU General Public License as well. Alternatively, you can
apply for an exception with the author of ProGuard.
sbt appears to be exiting abnormally.
The log file for this session is at C:\Users\Jeff\AppData\Local\Temp\sbt5722101343878258490.log
java.lang.OutOfMemoryError: PermGen space
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at sbt.CompletionService$$anon$1.take(CompletionService.scala:29)
at sbt.Execute.next$1(Execute.scala:74)
at sbt.Execute.processAll(Execute.scala:77)
at sbt.Execute.runKeep(Execute.scala:57)
at sbt.Execute.run(Execute.scala:51)
at sbt.EvaluateTask$.runTask(EvaluateTask.scala:81)
at sbt.Aggregation$$anonfun$7.apply(Aggregation.scala:85)
at sbt.Aggregation$$anonfun$7.apply(Aggregation.scala:85)
at sbt.EvaluateTask$.withStreams(EvaluateTask.scala:63)
at sbt.Aggregation$.runTasks(Aggregation.scala:85)
at sbt.Aggregation$$anonfun$applyTasks$1.apply(Aggregation.scala:74)
at sbt.Aggregation$$anonfun$applyTasks$1.apply(Aggregation.scala:73)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:63)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:63)
at sbt.Command$.process(Command.scala:91)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(Main.scala:86)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply$1.apply(Main.scala:86)
at sbt.State$$anon$1.process(State.scala:60)
at sbt.MainLoop$$anonfun$next$1.apply(Main.scala:86)
at sbt.MainLoop$$anonfun$next$1.apply(Main.scala:86)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:13)
at sbt.MainLoop$.next(Main.scala:86)
at sbt.MainLoop$.run(Main.scala:81)
at sbt.MainLoop$$anonfun$runLogged$1.apply(Main.scala:75)
at sbt.MainLoop$$anonfun$runLogged$1.apply(Main.scala:72)
at sbt.Using.apply(Using.scala:25)
at sbt.MainLoop$.runLogged(Main.scala:72)
at sbt.MainLoop$.runLogged(Main.scala:62)
at sbt.xMain.run(Main.scala:33)
at xsbt.boot.Launch$.run(Launch.scala:54)
Error during sbt execution: java.lang.OutOfMemoryError: PermGen space

```