Open tlightsky opened 9 years ago
Tutorial is currently little bit outdated for the latest versions of the libraries. I will try to figure what needs to be changed as soon as I can and notify you. Sorry about the inconveniences.
thank u for your fast reply wait for the right method :)
I clone this project :https://github.com/kenrestivo/spazradioapp After a little edit( target version), it works well,don't know does this help
@tlightsky I've just updated the tutorial in my fork. Can you please try it and give me feedback? https://github.com/alexander-yakushev/events/blob/master/tutorial.md
Hi,I cloned this event project, It works very well.
But when I use 'lein droid new ...',and then try 'lein droid doall',it will say: Could not find artifact org.clojure-android:tools.nrepl:jar:0.2.6 in central (https://repo1.maven.org/maven2/) Could not find artifact org.clojure-android:tools.nrepl:jar:0.2.6 in clojars (https://clojars.org/repo/)
Damn, sorry about that. Should be fine now.
I get this problem too with beta3. Does the template need to be updated?
With beta3 of what exactly, Zach?
I meant lein-droid 0.3.0-beta3. I get the same runtime error with a fresh project from its template.
The same being Could not find artifact org.clojure-android:tools.nrepl:jar:0.2.6
? I have already pushed it to Clojars, so that's weird.
No, sorry, I meant the runtime error above that says Could not locate cider/nrepl/middleware/apropos__init.class or cider/nrepl/middleware/apropos.clj on classpath.
.
Please look at the updated tutorial https://github.com/alexander-yakushev/events/blob/master/tutorial.md . I've sent a PR to Kris and still waiting for it to be merged.
I'll check it out. Is there something that depends on cider now? I don't use Emacs.
No, absolutely not (at least it shouldn't. If you see any cider traces, call 1-800-EMACSBUSTERS immediately!)
Sorry to be a pain but I'm still confused...I expect lein droid doall
to work out of the box. I'm not trying to connect to my app with a REPL or anything...I just want it to build and run.
No problem Zach! What's not working now?
Same error as before. I don't understand why I'm getting an error related to cider, which I do not use. I looked through the tutorial but can't figure it out. All I'm doing is lein droid new android-test android_test.core && cd android-test && lein droid doall
.
Zach, I'm terribly sorry. I thought that the error was related to the old way of incorporating cider and the :user
profile (that was a frequent issue before) but now I see that I force requiring CIDER middleware without a proper check. The fix is under way.
Please try now with neko 3.1.0-SNAPSHOT
, it should work without cider or any other alcohol. Sorry again, I should have shut my trap and tested it myself earlier.
I seem to still get the same runtime error. I made sure to delete the 3.1.0-SNAPSHOT
folder to force it to download.
Oh! I think I just needed to clean my project. The app launched successfully.
Whew! I was seriously considering to call some paranormal activity control squad. Please keep me informed if any more troubles occur.
Thanks for taking care of that. Do you think this will make its way into a lein-droid beta release sometime soon? I'm looking to release a new version of Nightcode soon. No rush, though.
Absolutely. Do you want it to be "release" release, or a reasonable beta will do?
A beta works fine; I just want to avoid basing any release on snapshots.
Sure thing, snapshot dependencies are no-go. I will push a new beta 1-2 days from now, gonna see if anything else might pop up.
Oh, and by the way. You still might want to look at cider-nrepl
. It is not cider-specific, I know vim.fireplace also uses it. Since it's like an IDE backend (think clang
) it may save you time reimplementing same stuff for Nightcode.
@tlightsky Can please tell if the updated tutorial I linked worked for you, or you gave up on that idea after all?:)
Hi,I'm familiar with android,but not with clojure. I'm working on problems on 4clojure,I'm going to use clojure on android after I'm familiar with clojure. The event sample project works fine for me before. I'll try the new tutorial later,and give you some feed back :)
All right, thank you! I haven't updated it since the last time you checked, I just forgot you already told me that it worked. and then had another bug with lein-droid. So nevermind, good luck learning Clojure!
Hi, I've tried 0.3.0-beta4,It works very well :)
Thanks again! I will keep the issue open until Kris merges my pull request.
I follow the tutorial, I change the org.clojure-android/tools.nrepl to org.clojure/tools.nrepl to run lein droid doall But I get an FC with:
E/AndroidRuntime(12719): java.io.FileNotFoundException: Could not locate cider/nrepl/middleware/apropos__init.class or cider/nrepl/middleware/apropos.clj on classpath.
E/AndroidRuntime(12719): at clojure.lang.RT.load(RT.java:468)
E/AndroidRuntime(12719): at clojure.lang.RT.load(RT.java:436)
E/AndroidRuntime(12719): at clojure.core$load$fn__5405.invoke(core.clj:5811)
E/AndroidRuntime(12719): at clojure.core$load.doInvoke(core.clj:5811)
E/AndroidRuntime(12719): at clojure.lang.RestFn.invoke(RestFn.java:408)
E/AndroidRuntime(12719): at clojure.core$load_one.invoke(core.clj:5617)
E/AndroidRuntime(12719): at clojure.core$load_lib$fn__5354.invoke(core.clj:5656)
E/AndroidRuntime(12719): at clojure.core$load_lib.doInvoke(core.clj:5656)
E/AndroidRuntime(12719): at clojure.lang.RestFn.applyTo(RestFn.java:142)
E/AndroidRuntime(12719): at clojure.core$apply.invoke(core.clj:628)
E/AndroidRuntime(12719): at clojure.core$load_libs.doInvoke(core.clj:5695)
E/AndroidRuntime(12719): at clojure.lang.RestFn.applyTo(RestFn.java:137)
E/AndroidRuntime(12719): at clojure.core$apply.invoke(core.clj:628)
E/AndroidRuntime(12719): at clojure.core$require.doInvoke(core.clj:5716)
E/AndroidRuntime(12719): at clojure.lang.RestFn.invoke(RestFn.java:408)
E/AndroidRuntime(12719): at neko.tools.repl$start_repl$fn377$fn378.invoke(repl.clj:63)
E/AndroidRuntime(12719): at clojure.core$map$fn__4513.invoke(core.clj:2616)
E/AndroidRuntime(12719): at clojure.lang.LazySeq.sval(LazySeq.java:40)
E/AndroidRuntime(12719): at clojure.lang.LazySeq.seq(LazySeq.java:49)
E/AndroidRuntime(12719): at clojure.lang.RT.seq(RT.java:512)
E/AndroidRuntime(12719): at clojure.core$seqseq4092.invoke(core.clj:135)
E/AndroidRuntime(12719): at clojure.core$apply.invoke(core.clj:626)
E/AndroidRuntime(12719): at neko.tools.repl$start_repl$fn__377.invoke(repl.clj:62)
E/AndroidRuntime(12719): at clojure.core$with_redefs_fn.invoke(core.clj:7146)
E/AndroidRuntime(12719): at neko.tools.repl$start_repl.doInvoke(repl.clj:58)
E/AndroidRuntime(12719): at clojure.lang.RestFn.applyTo(RestFn.java:139)
E/AndroidRuntime(12719): at clojure.core$apply.invoke(core.clj:632)
E/AndroidRuntime(12719): at neko.init$init.doInvoke(init.clj:41)
E/AndroidRuntime(12719): at clojure.lang.RestFn.invoke(RestFn.java:410)
E/AndroidRuntime(12719): at clojure.lang.Var.invoke(Var.java:379)
E/AndroidRuntime(12719): at org.tlightsky.clojuroid.SplashActivity$1.run(SplashActivity.java:62)
E/AndroidRuntime(12719): at java.lang.Thread.run(Thread.java:856)