clojure-android/neko

Use ref-adapter causes app to to crash

Closed this issue · 3 comments

The following crashes my activity during start up:

  (ns mynamespace.main
    (:use [neko.ui.adapters :only [ref-adapter]])

Getting:

E/AndroidRuntime(  680): java.lang.ExceptionInInitializerError
E/AndroidRuntime(  680):    at java.lang.Class.classForName(Native Method)
E/AndroidRuntime(  680):    at java.lang.Class.forName(Class.java:251)

From cider doing without the line that crashes it:

(use '[neko.ui.adapters :only [ref-adapter]])

gives:

java.lang.ClassNotFoundException: neko.ui.adapters.InterchangeableListAdapter
 at java.lang.Class.classForName (Class.java:-2)
    java.lang.Class.forName (Class.java:251)

Which Neko version do you use? Maybe you can find the solution here: #29.

I'm using 3.1.0-beta1, but I believe I had the problem on 3.0.1.

I've added the following to project.clj, and it works again!

:build-tools-version "19.1.0"

#29 helped.

Excellent!

Closed as duplicate of #29.