I'm trying to build this project: https://github.com/clojure-android/clojure
with
"ant" command. It sarts working, but I get this output with errors:
Buildfile:
C:\Users\Admin\Downloads\clojure-android\clojure-android\build.xml
clean:
[delete] Deleting directory
C:\Users\Admin\Downloads\clojure-android\clojure-
android\target
init:
[mkdir] Created dir:
C:\Users\Admin\Downloads\clojure-android\clojure-androi
d\target\classes
[mkdir] Created dir:
C:\Users\Admin\Downloads\clojure-android\clojure-androi
d\target\classes\clojure
compile-java:
[javac] Compiling 483 source files to
C:\Users\Admin\Downloads\clojure-andro
id\clojure-android\target\classes
[javac] warning: [options] bootstrap class path not set in conjunction
with
-source 1.5
[javac]
C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo
jure\lang\DalvikDynamicClassLoader.java:13: error: package android.util
does not
exist
[javac] import android.util.Log;
[javac] ^
[javac]
C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo
jure\lang\DalvikDynamicClassLoader.java:17: error: package dalvik.system
does no
t exist
[javac] import dalvik.system.DexFile;
[javac] ^
[javac]
C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo
jure\lang\DalvikDynamicClassLoader.java:45: error: package android.os.Build
does
not exist
[javac] DEX_OPTIONS.targetApiLevel =
android.os.Build.VERSION.SDK_INT;
[javac] ^
[javac]
C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo
jure\lang\DalvikDynamicClassLoader.java:99: error: cannot find symbol
[javac] final DexFile inDexFile = DexFile.loadDex(jarPath,
dexPa
th, 0);
[javac] ^
[javac] symbol: class DexFile
[javac] location: class DalvikDynamicClassLoader
[javac]
C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo
jure\lang\DalvikDynamicClassLoader.java:99: error: cannot find symbol
[javac] final DexFile inDexFile = DexFile.loadDex(jarPath,
dexPa
th, 0);
[javac] ^
[javac] symbol: variable DexFile
[javac] location: class DalvikDynamicClassLoader
[javac]
C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo
jure\lang\DalvikDynamicClassLoader.java:104: error: cannot find symbol
[javac] Log.e(TAG,"Failed to load generated class:
"+name);
[javac] ^
[javac] symbol: variable Log
[javac] location: class DalvikDynamicClassLoader
[javac]
C:\Users\Admin\Downloads\clojure-android\clojure-android\src\jvm\clo
jure\lang\DalvikDynamicClassLoader.java:110: error: cannot find symbol
[javac] Log.e(TAG,"Failed to define class due to I/O
exception."
,e);
[javac] ^
[javac] symbol: variable Log
[javac] location: class DalvikDynamicClassLoader
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 7 errors
[javac] 1 warning
BUILD FAILED
C:\Users\Admin\Downloads\clojure-android\clojure-android\build.xml:41:
Compile f
ailed; see the compiler error output for details.
Total time: 2 seconds
My questions are:
1) How can I resolve this dependency issue?
2) If I compile like that, can I run it on Android?
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.