clojure-android / lein-droid

A Leiningen plugin for building Clojure/Android projects
Eclipse Public License 1.0
645 stars 56 forks source link

Can't adb install to the android5 in genymotion #117

Closed not3 closed 9 years ago

not3 commented 9 years ago
~/lein/app$ lein droid install
Installing APK...
/opt/android-sdk/platform-tools/adb -s 192.168.56.101:5555 install -r /home/x/lein/app/target/debug/app-debug.apk
5515 KB/s (2304899 bytes in 0.408s)
        pkg: /data/local/tmp/weibo-debug.apk
Failure [INSTALL_FAILED_DEXOPT]

and android 4.4.4 is fine,oops

not3 commented 9 years ago
$ lein droid doall
Generating manifest...
Generating R.java...
Compiling 1 source files to /home/x/lein/app/target/debug/classes
Compiling Clojure files...
Build type: debug, dynamic compilation: enabled, remote REPL: enabled.
Compiling neko.compliment.ui-widgets-and-attributes
Compiling neko.debug
Compiling clojure.java.shell
Compiling im.not3.main
Compiling clojure.reflect
Compiling clojure.tools.nrepl.transport
Compiling neko.log
Compiling clojure.zip
Compiling clojure.xml
Compiling neko.threading
Compiling neko.ui.menu
Compiling neko.ui.traits
Compiling clojure.stacktrace
Compiling neko.find-view
Compiling neko.init
Compiling neko.ui.listview
Compiling neko.ui.mapping
Compiling clojure.tools.nrepl.server
Exception in thread "main" java.lang.ExceptionInInitializerError, compiling:(/tmp/form-init247736063225041101.clj:1:71)
        at clojure.lang.Compiler.load(Compiler.java:7207)
        at clojure.lang.Compiler.loadFile(Compiler.java:7151)
        at clojure.main$load_script.invoke(main.clj:279)
        at clojure.main$init_opt.invoke(main.clj:284)
        at clojure.main$initialize.invoke(main.clj:312)
        at clojure.main$null_opt.invoke(main.clj:347)
        at clojure.main$main.doInvoke(main.clj:425)
        at clojure.lang.RestFn.invoke(RestFn.java:421)
        at clojure.lang.Var.invoke(Var.java:383)
        at clojure.lang.AFn.applyToHelper(AFn.java:156)
        at clojure.lang.Var.applyTo(Var.java:700)
        at clojure.main.main(main.java:37)
Caused by: java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:274)
        at clojure.lang.RT.loadClassForName(RT.java:2186)
        at clojure.lang.RT.load(RT.java:455)
        at clojure.lang.RT.load(RT.java:436)
        at clojure.core$load$fn__5397.invoke(core.clj:5804)
        at clojure.core$load.doInvoke(core.clj:5803)
        at clojure.lang.RestFn.invoke(RestFn.java:408)
        at clojure.core$load_one.invoke(core.clj:5609)
        at clojure.core$compile$fn__5402.invoke(core.clj:5815)
        at clojure.core$compile.invoke(core.clj:5814)
        at user$eval7.invoke(form-init247736063225041101.clj:1)
        at clojure.lang.Compiler.eval(Compiler.java:6768)
        at clojure.lang.Compiler.eval(Compiler.java:6758)
        at clojure.lang.Compiler.load(Compiler.java:7195)
        ... 11 more
Caused by: java.lang.IllegalStateException: Attempting to call unbound fn: #'clojure.pprint/use-method
        at clojure.lang.Var$Unbound.throwArity(Var.java:43)
        at clojure.lang.AFn.invoke(AFn.java:40)
        at clojure.lang.Var.invoke(Var.java:388)
        at clojure.tools.nrepl.server__init.load(Unknown Source)
        at clojure.tools.nrepl.server__init.<clinit>(Unknown Source)
        ... 26 more
Compilation failed.

This is a temporary measure until the new version of Android is released (the bug is already fixed in their development branch).

Just wait?

alexander-yakushev commented 9 years ago

This exception shouldn't be thrown, can you run DEBUG=1 lein droid doall?

not3 commented 9 years ago

There is no problem now. just lein clean and then lein droid doall. ooops..

alexander-yakushev commented 9 years ago

You probably started using older version of Nrepl, and then didn't clean after switching to new one.