Skip to content Skip to sidebar Skip to footer

How Does One Invoke Clojure On Android?

TL;DR: I can't invoke Clojure methods in Android; I get an error and I'm not sure why. I am building an Android app for a school project. I've learned Clojure, and I would like to

Solution 1:

The method canAccess was added in Java 9 (see here).

Judging by that stacktrace, which shows a NoSuchMethodException for canAccess, you're using a Clojure jar that was compiled with Java 9 or above, and your Android system is using an earlier JRE.

If you can either upgrade your JRE on Android, or switch to a compatible version of Clojure, that should fix it.

Post a Comment for "How Does One Invoke Clojure On Android?"