clojure-android / lein-droid

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

Problem creating dex with test project (java.util.zip.ZipException) #12

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hi, just trying to get started with lein droid and I have an error running 'lein droid build' with the test project.

I get this error:

UNEXPECTED TOP-LEVEL EXCEPTION: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:127) at java.util.zip.ZipFile.(ZipFile.java:144) at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:206) at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131) at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109) at com.android.dx.command.dexer.Main.processOne(Main.java:418) at com.android.dx.command.dexer.Main.processAllFiles(Main.java:329) at com.android.dx.command.dexer.Main.run(Main.java:206) at com.android.dx.command.dexer.Main.main(Main.java:174) at com.android.dx.command.Main.main(Main.java:95) 1 error; aborting

I'm running linux mint debian edition which is basically debian testing.

alexander-yakushev commented 11 years ago

Hi there,

Could you please tell what version of lein-droid and Android SDK do you use?

ghost commented 11 years ago

Hi, I'm running

lein-droid - 0.1.0-beta2

$ java -version java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

On 25 October 2012 03:26, Alexander Yakushev notifications@github.comwrote:

Hi there,

Could you please tell what version of lein-droid and Android SDK do you use?

— Reply to this email directly or view it on GitHubhttps://github.com/alexander-yakushev/lein-droid/issues/12#issuecomment-9741330.

ghost commented 11 years ago

I've solved the problem. Looking at the output of lein droid with DEBUG=1 I noticed that it was looking for annotations.jar in the sdk tools and this wasn't present. Running eclipse and updating the android sdk tools package sorted it out.

On 25 October 2012 20:46, Duncan Watts djmwatts@gmail.com wrote:

Hi, I'm running

lein-droid - 0.1.0-beta2

$ java -version java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

On 25 October 2012 03:26, Alexander Yakushev notifications@github.comwrote:

Hi there,

Could you please tell what version of lein-droid and Android SDK do you use?

— Reply to this email directly or view it on GitHubhttps://github.com/alexander-yakushev/lein-droid/issues/12#issuecomment-9741330.

alexander-yakushev commented 11 years ago

I am glad it is solved now. But the dx error message is totally alien, it could print out the name of the file missing. I should remember this case if anyone would stumble on such errors.