jberkel / android-plugin

An sbt plugin for Android development in Scala
https://groups.google.com/forum/#!forum/scala-on-android
Other
476 stars 113 forks source link

Problem with whitespace in ivy-repo path #81

Open choedl opened 13 years ago

choedl commented 13 years ago

I have a android project with one library dependency.

My local ivy-repo is in the windows home folder (C:\Documents and Settings ...)

It looks like the android plugin has some problems with the whitespaces in the path when doing android:package-debug:

UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: C:\Documents: file not found at com.android.dx.util.FileUtils.readFile(FileUtils.java:55) at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java: 133) at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java: 108) at com.android.dx.command.dexer.Main.processOne(Main.java:313) at com.android.dx.command.dexer.Main.processAllFiles(Main.java: 233) at com.android.dx.command.dexer.Main.run(Main.java:185) at com.android.dx.command.dexer.Main.main(Main.java:166) at com.android.dx.command.Main.main(Main.java:90)

UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: and: file not found at com.android.dx.util.FileUtils.readFile(FileUtils.java:55) at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java: 133) at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java: 108) at com.android.dx.command.dexer.Main.processOne(Main.java:313) at com.android.dx.command.dexer.Main.processAllFiles(Main.java: 233) at com.android.dx.command.dexer.Main.run(Main.java:185) at com.android.dx.command.dexer.Main.main(Main.java:166) at com.android.dx.command.Main.main(Main.java:90)

UNEXPECTED TOP-LEVEL EXCEPTION: java.io.FileNotFoundException: Settings\user.ivy2\cache \com.google.protobuf\protobuf-java\jars\protobuf-java-2.4.1.jar (The system cannot find th e path specified) 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: 205) at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java: 130) at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java: 108) at com.android.dx.command.dexer.Main.processOne(Main.java:313) at com.android.dx.command.dexer.Main.processAllFiles(Main.java: 233) at com.android.dx.command.dexer.Main.run(Main.java:185) at com.android.dx.command.dexer.Main.main(Main.java:166) at com.android.dx.command.Main.main(Main.java:90)