clojure-android / lein-droid

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

Error on lein droid new #50

Closed krisc closed 11 years ago

krisc commented 11 years ago

Hi, Alex. I am going through your Tutorial and am getting an error when I enter the command:

lein droid new clojuroid org.stuff.clojuroid :activity MyActivity :target-sdk 11 :app-name ClojureMeetsAndroid

and the error is:

java.net.URL cannot be cast to java.lang.String

I tried running the command without the optional arguments and still getting the same error.

I am running Linux Mint 14 with lein 2.0.0 and Java 1.6.0_45. I am on a 64-bit system.

alexander-yakushev commented 11 years ago

Hi Kris,

I think you should upgrade to Leiningen >2.1.0. This version introduced some breaking changes (as discussed in #20), and I adapted lein-droid to the newer version. Apparently the compatibility with 2.0.0 was broken.

krisc commented 11 years ago

Would you recommend I upgrade to the latest version?

krisc commented 11 years ago

Thanks, it works with lein 2.3.1. I'm still wondering if I'm better of using a particular version.

alexander-yakushev commented 11 years ago

I don't think it matters much as long as it's >2.1.0. I have Leiningen 2.1.3 installed, I don't update it often, but it is nice to hear that 2.3.1 is fine as well.

Can we close this issue now?

krisc commented 11 years ago

Yes. Thanks for your help!

alexander-yakushev commented 11 years ago

You are welcome, Kris! Feel free to contact me for any occasion.