clojure-android / neko

The Clojure/Android Toolkit
Other
297 stars 36 forks source link

Use ref-adapter causes app to to crash #33

Closed tristanstraub closed 10 years ago

tristanstraub commented 10 years ago

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)
alexander-yakushev commented 10 years ago

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

tristanstraub commented 10 years ago

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.

alexander-yakushev commented 10 years ago

Excellent!

Closed as duplicate of #29.