Neko has moved to the new Clojure/Android organisation at https://github.com/clojure-android/neko.
sattvik / neko Goto Github PK
View Code? Open in Web Editor NEWThe Clojure/Android Toolkit
The Clojure/Android Toolkit
Neko has moved to the new Clojure/Android organisation at https://github.com/clojure-android/neko.
I'm following the tutorial on https://github.com/alexander-yakushev/lein-droid/wiki/Tutorial, but when I execute "lein droid build" (or even just "lein droid compile"), I get the following error:
Compiling neko.activity
Exception in thread "main" java.lang.ClassNotFoundException: android.app.Activity, compiling:(activity.clj:12)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3387)
at clojure.lang.Compiler.compile1(Compiler.java:7035)
at clojure.lang.Compiler.compile1(Compiler.java:7025)
at clojure.lang.Compiler.compile(Compiler.java:7097)
at clojure.lang.RT.compile(RT.java:412)
at clojure.lang.RT.load(RT.java:452)
at clojure.lang.RT.load(RT.java:425)
at clojure.core$load$fn__4890.invoke(core.clj:5415)
at clojure.core$load.doInvoke(core.clj:5414)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5227)
at clojure.core$compile$fn__4895.invoke(core.clj:5426)
at clojure.core$compile.invoke(core.clj:5425)
at user$eval31.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:6511)
at clojure.lang.Compiler.eval(Compiler.java:6501)
at clojure.lang.Compiler.eval(Compiler.java:6477)
at clojure.core$eval.invoke(core.clj:2797)
at clojure.main$eval_opt.invoke(main.clj:302)
at clojure.main$initialize.invoke(main.clj:321)
at clojure.main$null_opt.invoke(main.clj:354)
at clojure.main$main.doInvoke(main.clj:432)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:419)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)
Caused by: java.lang.ClassNotFoundException: android.app.Activity
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at neko.activity$loading__4784__auto__.invoke(activity.clj:12)
at clojure.lang.AFn.applyToHelper(AFn.java:159)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3382)
... 26 more
Compilation failed.
The complete output from the first time I issue the build command (which also shows what gets downloaded etc) is included below. If you have any ideas why this fails, fixes or workarounds please share!
$ lein droid build
Could not find artifact lein-droid:lein-droid:pom:0.0.1 in central (http://repo1.maven.org/maven2)
Retrieving lein-droid/lein-droid/0.0.1/lein-droid-0.0.1.pom (3k)
from http://clojars.org/repo/
Could not find artifact robert:hooke:pom:1.1.2 in central (http://repo1.maven.org/maven2)
Retrieving robert/hooke/1.1.2/hooke-1.1.2.pom (2k)from http://clojars.org/repo/
Retrieving org/clojure/data.zip/0.1.0/data.zip-0.1.0.pom
from http://repo1.maven.org/maven2/
Retrieving org/clojure/pom.contrib/0.0.23/pom.contrib-0.0.23.pom
from http://repo1.maven.org/maven2/
Retrieving org/sonatype/oss/oss-parent/5/oss-parent-5.pom
from http://repo1.maven.org/maven2/
Retrieving org/clojure/clojure/1.3.0-beta1/clojure-1.3.0-beta1.pom
from http://repo1.maven.org/maven2/
Could not find artifact lein-newnew:lein-newnew:pom:0.3.1 in central (http://repo1.maven.org/maven2)
Retrieving lein-newnew/lein-newnew/0.3.1/lein-newnew-0.3.1.pom (2k)
from http://clojars.org/repo/
Could not find artifact stencil:stencil:pom:0.2.0 in central (http://repo1.maven.org/maven2)
Retrieving stencil/stencil/0.2.0/stencil-0.2.0.pom (2k)
from http://clojars.org/repo/
Retrieving org/clojure/clojure/1.3.0/clojure-1.3.0.pom
from http://repo1.maven.org/maven2/
Could not find artifact slingshot:slingshot:pom:0.8.0 in central (http://repo1.maven.org/maven2)
Retrieving slingshot/slingshot/0.8.0/slingshot-0.8.0.pom (1k)
from http://clojars.org/repo/
Retrieving org/clojure/clojure/1.2.1/clojure-1.2.1.pom
from http://repo1.maven.org/maven2/
Could not find artifact bultitude:bultitude:pom:0.1.5 in central (http://repo1.maven.org/maven2)
Retrieving bultitude/bultitude/0.1.5/bultitude-0.1.5.pom (2k)
from http://clojars.org/repo/
Retrieving org/clojure/data.zip/0.1.0/data.zip-0.1.0.jar
from http://repo1.maven.org/maven2/
Could not find artifact robert:hooke:jar:1.1.2 in central (http://repo1.maven.org/maven2)
Could not find artifact lein-droid:lein-droid:jar:0.0.1 in central (http://repo1.maven.org/maven2)
Could not find artifact lein-newnew:lein-newnew:jar:0.3.1 in central (http://repo1.maven.org/maven2)
Retrieving org/clojure/clojure/1.3.0-beta1/clojure-1.3.0-beta1.jar
from http://repo1.maven.org/maven2/
Could not find artifact stencil:stencil:jar:0.2.0 in central (http://repo1.maven.org/maven2)
Could not find artifact slingshot:slingshot:jar:0.8.0 in central (http://repo1.maven.org/maven2)
Could not find artifact bultitude:bultitude:jar:0.1.5 in central (http://repo1.maven.org/maven2)
Retrieving lein-droid/lein-droid/0.0.1/lein-droid-0.0.1.jar (25k)
from http://clojars.org/repo/
Retrieving lein-newnew/lein-newnew/0.3.1/lein-newnew-0.3.1.jar (11k)
from http://clojars.org/repo/
Retrieving stencil/stencil/0.2.0/stencil-0.2.0.jar (16k)
from http://clojars.org/repo/
Retrieving robert/hooke/1.1.2/hooke-1.1.2.jar (3k)from http://clojars.org/repo/
Retrieving slingshot/slingshot/0.8.0/slingshot-0.8.0.jar (6k)
from http://clojars.org/repo/
Retrieving bultitude/bultitude/0.1.5/bultitude-0.1.5.jar (3k)
from http://clojars.org/repo/
Retrieving org/clojure/tools.nrepl/0.2.0-beta6/tools.nrepl-0.2.0-beta6.pom
from http://repo1.maven.org/maven2/
Retrieving org/clojure/pom.contrib/0.0.25/pom.contrib-0.0.25.pom
from http://repo1.maven.org/maven2/
Retrieving org/clojure/clojure/1.2.0/clojure-1.2.0.pom
from http://repo1.maven.org/maven2/
Could not find artifact android:clojure:pom:1.4.0 in central (http://repo1.maven.org/maven2)
Retrieving android/clojure/1.4.0/clojure-1.4.0.pom (2k)
from http://clojars.org/repo/
Could not find metadata neko:neko:1.0.1-SNAPSHOT/maven-metadata.xml in central (http://repo1.maven.org/maven2)
Retrieving neko/neko/1.0.1-SNAPSHOT/maven-metadata.xml (1k)
from http://clojars.org/repo/
Could not find artifact neko:neko:pom:1.0.1-20120523.214927-1 in central (http://repo1.maven.org/maven2)
Retrieving neko/neko/1.0.1-SNAPSHOT/neko-1.0.1-20120523.214927-1.pom (3k)
from http://clojars.org/repo/
Could not find artifact android:clojure:jar:1.4.0 in central (http://repo1.maven.org/maven2)
Retrieving org/clojure/tools.nrepl/0.2.0-beta6/tools.nrepl-0.2.0-beta6.jar
from http://repo1.maven.org/maven2/
Retrieving org/clojure/clojure/1.2.0/clojure-1.2.0.jar
from http://repo1.maven.org/maven2/
Retrieving android/clojure/1.4.0/clojure-1.4.0.jar (4070k)
from http://clojars.org/repo/
Retrieving neko/neko/1.0.1-SNAPSHOT/neko-1.0.1-20120523.214927-1.jar (23k)
from http://clojars.org/repo/
Compiling neko.activity
Exception in thread "main" java.lang.ClassNotFoundException: android.app.Activity, compiling:(activity.clj:12)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3387)
at clojure.lang.Compiler.compile1(Compiler.java:7035)
at clojure.lang.Compiler.compile1(Compiler.java:7025)
at clojure.lang.Compiler.compile(Compiler.java:7097)
at clojure.lang.RT.compile(RT.java:412)
at clojure.lang.RT.load(RT.java:452)
at clojure.lang.RT.load(RT.java:425)
at clojure.core$load$fn__4890.invoke(core.clj:5415)
at clojure.core$load.doInvoke(core.clj:5414)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5227)
at clojure.core$compile$fn__4895.invoke(core.clj:5426)
at clojure.core$compile.invoke(core.clj:5425)
at user$eval31.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:6511)
at clojure.lang.Compiler.eval(Compiler.java:6501)
at clojure.lang.Compiler.eval(Compiler.java:6477)
at clojure.core$eval.invoke(core.clj:2797)
at clojure.main$eval_opt.invoke(main.clj:302)
at clojure.main$initialize.invoke(main.clj:321)
at clojure.main$null_opt.invoke(main.clj:354)
at clojure.main$main.doInvoke(main.clj:432)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:419)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)
Caused by: java.lang.ClassNotFoundException: android.app.Activity
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at neko.activity$loading__4784__auto__.invoke(activity.clj:12)
at clojure.lang.AFn.applyToHelper(AFn.java:159)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3382)
... 26 more
Compilation failed.
In build_support/clojure.xml I had to change "android.target.classpath" to "project.target.class.path" and "project.libraries.jars" to "project.all.jars.path".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.