Closed merdei closed 10 years ago
Please check issue #61. This problem seems to be also related to JDK version.
As a better solution, please try updating to lein-droid 0.2.0-preview2
and create a new project with it. This new version's template contains a fix that allows using JDK7 when compiling the application.
Earlier I tried with java 6 (as mentioned in issue #61) but it didn't work. Switching to 0.2.0-preview2 solved the problem. Thank you.
You are welcome. Still the only relevant difference between preview1 and preview2 is a line that tells Leiningen to use javac in jdk6-compatible mode, so it is pretty strange it resolved your issue (since you are already using v6).
Anyway, I'm glad it works now!
Hi,
I am trying to make my demo clojure android app running but I get CNFE when executing lein run.
I am using lein-droid 0.2.0-preview1 and neko 3.0.0-preview1. Lein: Leiningen 2.2.0 on Java 1.6.0_45 Java HotSpot(TM) 64-Bit Server VM
The error message I get: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.alma2/com.alma2.SplashActivity}: java.lang.ClassNotFoundException: Didn't find class "com.alma2.SplashActivity" on path: /data/app/com.alma2-1.apk
While the class file can be found in the target/classes folder, so I suppose it is part of the apk.
Any idea?
Thanks, Mark