Closed thrawn-a-D closed 10 years ago
Please uncomment :dex-opts ["-JXmx4096M"]
line in your project.clj. This should fix the issue.
Sorry, I haven't noticed that you already tried increasing JVM memory. Maybe then try uncommenting :force-dex-optimize true
, but it is pretty weird that 4GB of memory is not enough to build a sample project.
Wow, now that is a quick response time :+1: Thanks for your hint! I was using the leiningens :jvm-opts and overlook the comments related to OutOfMemory issues. After removing the jvm-opts and setting the :dex-opts, it finally created a dex file.
Thank you and keep up the great work.
You are welcome! Increasing memory of Leiningen didn't work becase dx
(dex) is an external utility, and it itself needs more memory, not the Leiningen.
First of all, thanks for the great and constant work you put in neko. I wanted to get in touch with android development in clojure. But after creating a project as described, using:
I try to build it with
lein droid build
and get an OutOfMemory exception:I tried different neko versions, increasing jvm memory, cleaned up my profiles.clj. I even tried those steps on different machines. Non of my actions could prevent this from happening.
What am I doing wrong?
I use: java 1.7.0_21, neko 3.x lein-droid 0.2.3 leiningen 2.2.0