scala-android / sbt-android

An easy-to-use sbt plugin for working with all Android projects
Other
741 stars 94 forks source link

Could not find class 'scala.Some' #37

Closed hkirk closed 10 years ago

hkirk commented 10 years ago

Trying to build a Android project with a Android library and a Android project. Both containing scala code.

I have followed this https://gist.github.com/pfn/5872770 and created this Build.scala

import sbt. import sbt.Keys.

import android.Keys._

object MyProjectBuild extends Build {

// meta project lazy val root = Project(id = "ABM", base = file(".")) settings(Seq( packageT in Compile <<= packageT in Android in ABM, packageRelease <<= packageRelease in Android in ABM, packageDebug <<= packageDebug in Android in ABM, run <<= run in Android in ABM ) ++ android.Plugin.androidCommands: _* ) aggregate(ABM, GR)

// android application project lazy val ABM = Project(id = "Custom", base = file("ABM")) settings( android.Plugin.androidBuild(GR) ++ Seq( proguardScala in Android := true, proguardOptions in Android ++= Seq( "-dontobfuscate", "-dontoptimize" ) ): _*) dependsOn GR

val GenericRace = Project(id = "GR", base = file("GR")) settings ( Seq( scalacOptions in Compile += "-deprecation", javacOptions in Compile += "-deprecation", libraryDependencies ++= Seq(/* "com.viewpagerindicator" % "library" % "2.4.1" % "provided", "com.android.support" % "support-v4" % "18.0.0", "com.android.support" % "appcompat-v7" % "18.0.0"_/) ) ++ android.Plugin.androidBuild: __) }

But whenever i run the application on a device i get Class not found exception

Could not find class 'scala.Some' or java.lang.NoClassDefFoundError: scala.concurrent.ExecutionContext

These files are not in the classes.dex.

pfn commented 10 years ago

Attach clean build log

Sent from my phone On Feb 14, 2014 6:14 AM, "Henrik Kirk" notifications@github.com wrote:

Trying to build a Android project with a Android library and a Android project. Both containing scala code.

I have followed this https://gist.github.com/pfn/5872770 and created this Build.scala

import sbt. import sbt.Keys.

import android.Keys._

object MyProjectBuild extends Build {

// meta project lazy val root = Project(id = "ABM", base = file(".")) settings(Seq( packageT in Compile <<= packageT in Android in ABM, packageRelease <<= packageRelease in Android in ABM, packageDebug <<= packageDebug in Android in ABM, run <<= run in Android in ABM ) ++ android.Plugin.androidCommands: _* ) aggregate(ABM, GR)

// android application project lazy val ABM = Project(id = "Custom", base = file("ABM")) settings( android.Plugin.androidBuild(GR) ++ Seq( proguardScala in Android := true, proguardOptions in Android ++= Seq( "-dontobfuscate", "-dontoptimize" ) ): _*) dependsOn GR

val GenericRace = Project(id = "GR", base = file("GR")) settings ( Seq( scalacOptions in Compile += "-deprecation", javacOptions in Compile += "-deprecation", libraryDependencies ++= Seq(/* "com.viewpagerindicator" % "library" % "2.4.1" % "provided", "com.android.support" % "support-v4" % "18.0.0", "com.android.support" % "appcompat-v7" % "18.0.0" _/) ) ++ android.Plugin.androidBuild: __) }

But whenever i run the application on a device i get Class not found exception

Could not find class 'scala.Some' or java.lang.NoClassDefFoundError: scala.concurrent.ExecutionContext

These files are not in the classes.dex.

Reply to this email directly or view it on GitHubhttps://github.com/pfn/android-sdk-plugin/issues/37 .

hkirk commented 10 years ago

clean [success] Total time: 0 s, completed Feb 14, 2014 2:18:34 PM android:run [info] Updating {file:/Users/henrik/Private/ABM/AndroidBuild/}GR... [info] Resolving org.scala-lang#scala-library;2.10.3 ... [info] Resolving org.scalaj#scalaj-time_2.10.0-M7;0.6 ... [info] Resolving joda-time#joda-time;2.1 ... [info] Resolving org.joda#joda-convert;1.2 ... [info] Resolving org.scaloid#scaloid_2.10;3.0-8 ... [info] Resolving org.scala-lang#scala-compiler;2.10.3 ... [info] Resolving org.scala-lang#scala-reflect;2.10.3 ... [info] Resolving org.scala-lang#jline;2.10.3 ... [info] Resolving org.fusesource.jansi#jansi;1.4 ... [info] Done updating. [info] Collecting resources [info] Performing full resource merge [info] Updating {file:/Users/henrik/Private/ABM/AndroidBuild/}ABM... [info] Resolving org.scala-lang#scala-library;2.10.3 ... [info] Resolving genericracelibrary#genericracelibrary_2.10;0.1-SNAPSHOT ... [info] Resolving org.scalaj#scalaj-time_2.10.0-M7;0.6 ... [info] Resolving joda-time#joda-time;2.1 ... [info] Generating R.java [info] Regenerating TR.scala because R.java has changed [info] Rebuilding all classes because R.java has changed [info] Resolving org.joda#joda-convert;1.2 ... [info] Resolving org.scaloid#scaloid2.10;3.0-8 ... [info] Compiling 7 Scala sources and 4 Java sources to /Users/henrik/Private/ABM/AndroidBuild/GR/bin/classes... [info] Resolving org.scala-lang#scala-compiler;2.10.3 ... [info] Resolving org.scala-lang#scala-reflect;2.10.3 ... [info] Resolving org.scala-lang#jline;2.10.3 ... [info] Resolving org.fusesource.jansi#jansi;1.4 ... [info] Done updating. [info] Collecting resources [info] Performing full resource merge [info] Packaging resources: resources-debug.ap [warn] /Users/henrik/Private/ABM/AndroidBuild/GR/src/EasyJSON/JSON.scala:19: non-variable type argument String in type pattern Map[String,Any] is unchecked since it is eliminated by erasure [warn] case m: Map[String, Any] => m.map { [warn] ^ [warn] /Users/henrik/Private/ABM/AndroidBuild/GR/src/EasyJSON/JSON.scala:23: non-variable type argument Any in type pattern java.util.List[Any] is unchecked since it is eliminated by erasure [warn] case l: java.util.List[Any] => l.map(makeJSON).mkString("[", ",", "]") [warn] ^ [warn] there were 3 feature warning(s); re-run with -feature for details [warn] three warnings found [info] Packaging /Users/henrik/Private/ABM/AndroidBuild/GR/bin/classes.jar ... [info] Done packaging. [info] Generating R.java [info] Rebuilding all classes because R.java has changed [info] Compiling 7 Java sources to /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes... [info] Packaging /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.jar ... [info] Done packaging. [info] Generating classes.dex [info] Packaged: ABM-debug-unaligned.apk (1.23MB) [info] Debug package does not need signing: ABMn-debug-unaligned.apk [info] zipaligned: ABM-debug.apk [info] Installing... [info] [ABM-debug.apk] Install finished: 1.23MB in 10.64s. 118.52KB/s [info] Starting: Intent { cmp=dk.abm/.Main } [success] Total time: 65 s, completed Feb 14, 2014 2:19:46 PM

pfn commented 10 years ago

ABM does not contain scala sources, you must useProguard in Android := true in ABM

On Fri, Feb 14, 2014 at 6:48 AM, Henrik Kirk notifications@github.comwrote:

clean [success] Total time: 0 s, completed Feb 14, 2014 2:18:34 PM android:run [info] Updating {file:/Users/henrik/Private/ABM/AndroidBuild/}GR... [info] Resolving org.scala-lang#scala-library;2.10.3 ... [info] Resolving org.scalaj#scalaj-time_2.10.0-M7;0.6 ... [info] Resolving joda-time#joda-time;2.1 ... [info] Resolving org.joda#joda-convert;1.2 ... [info] Resolving org.scaloid#scaloid_2.10;3.0-8 ... [info] Resolving org.scala-lang#scala-compiler;2.10.3 ... [info] Resolving org.scala-lang#scala-reflect;2.10.3 ... [info] Resolving org.scala-lang#jline;2.10.3 ... [info] Resolving org.fusesource.jansi#jansi;1.4 ... [info] Done updating. [info] Collecting resources [info] Performing full resource merge [info] Updating {file:/Users/henrik/Private/ABM/AndroidBuild/}ABM... [info] Resolving org.scala-lang#scala-library;2.10.3 ... [info] Resolving genericracelibrary#genericracelibrary_2.10;0.1-SNAPSHOT ... [info] Resolving org.scalaj#scalaj-time_2.10.0-M7;0.6 ... [info] Resolving joda-time#joda-time;2.1 ... [info] Generating R.java [info] Regenerating TR.scala because R.java has changed [info] Rebuilding all classes because R.java has changed [info] Resolving org.joda#joda-convert;1.2 ... [info] Resolving org.scaloid#scaloid2.10;3.0-8 ... [info] Compiling 7 Scala sources and 4 Java sources to /Users/henrik/Private/ABM/AndroidBuild/GR/bin/classes... [info] Resolving org.scala-lang#scala-compiler;2.10.3 ... [info] Resolving org.scala-lang#scala-reflect;2.10.3 ... [info] Resolving org.scala-lang#jline;2.10.3 ... [info] Resolving org.fusesource.jansi#jansi;1.4 ... [info] Done updating. [info] Collecting resources [info] Performing full resource merge [info] Packaging resources: resources-debug.ap [warn] /Users/henrik/Private/ABM/AndroidBuild/GR/src/EasyJSON/JSON.scala:19: non-variable type argument String in type pattern Map[String,Any] is unchecked since it is eliminated by erasure [warn] case m: Map[String, Any] => m.map { [warn] ^ [warn] /Users/henrik/Private/ABM/AndroidBuild/GR/src/EasyJSON/JSON.scala:23: non-variable type argument Any in type pattern java.util.List[Any] is unchecked since it is eliminated by erasure [warn] case l: java.util.List[Any] => l.map(makeJSON).mkString("[", ",", "]") [warn] ^ [warn] there were 3 feature warning(s); re-run with -feature for details [warn] three warnings found [info] Packaging /Users/henrik/Private/ABM/AndroidBuild/GR/bin/classes.jar ... [info] Done packaging. [info] Generating R.java [info] Rebuilding all classes because R.java has changed [info] Compiling 7 Java sources to /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes... [info] Packaging /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.jar ... [info] Done packaging. [info] Generating classes.dex [info] Packaged: ABM-debug-unaligned.apk (1.23MB) [info] Debug package does not need signing: ABMn-debug-unaligned.apk [info] zipaligned: ABM-debug.apk [info] Installing... [info] [ABM-debug.apk] Install finished: 1.23MB in 10.64s. 118.52KB/s [info] Starting: Intent { cmp=dk.abm/.Main } [success] Total time: 65 s, completed Feb 14, 2014 2:19:46 PM

Reply to this email directly or view it on GitHubhttps://github.com/pfn/android-sdk-plugin/issues/37#issuecomment-35089489 .

hkirk commented 10 years ago

The classes.dex file still don't contain the scala-lang files.

pfn commented 10 years ago

clean build, and include a build log

On Fri, Feb 14, 2014 at 7:20 AM, Henrik Kirk notifications@github.comwrote:

The classes.dex file still don't contain the scala-lang files.

Reply to this email directly or view it on GitHubhttps://github.com/pfn/android-sdk-plugin/issues/37#issuecomment-35092394 .

hkirk commented 10 years ago

Sorry

android:install [info] Set current project to ABM (in build file:/Users/henrik/Private/ABM/AndroidBuild/) [info] Updating {file:/Users/henrik/Private/ABM/AndroidBuild/}GR... [info] Resolving org.scala-lang#scala-library;2.10.3 ... [info] Resolving org.scalaj#scalaj-time_2.10.0-M7;0.6 ... [info] Resolving joda-time#joda-time;2.1 ... [info] Resolving org.joda#joda-convert;1.2 ... [info] Resolving org.scaloid#scaloid_2.10;3.0-8 ... [info] Resolving org.scala-lang#scala-compiler;2.10.3 ... [info] Resolving org.scala-lang#scala-reflect;2.10.3 ... [info] Resolving org.scala-lang#jline;2.10.3 ... [info] Resolving org.fusesource.jansi#jansi;1.4 ... [info] Done updating. [info] Updating {file:/Users/henrik/Private/ABM/AndroidBuild/}Custom... [info] Resolving org.scala-lang#scala-library;2.10.3 ... [info] Resolving genericracelibrary#genericracelibrary_2.10;0.1-SNAPSHOT ... [info] Resolving org.scalaj#scalaj-time_2.10.0-M7;0.6 ... [info] Resolving joda-time#joda-time;2.1 ... [info] Collecting resources [info] Performing full resource merge [info] Resolving org.joda#joda-convert;1.2 ... [info] Resolving org.scaloid#scaloid2.10;3.0-8 ... [info] Generating R.java [info] Packaging resources: resources-debug.ap [info] Regenerating TR.scala because R.java has changed [info] Rebuilding all classes because R.java has changed [info] Resolving org.scala-lang#scala-compiler;2.10.3 ... [info] Resolving org.scala-lang#scala-reflect;2.10.3 ... [info] Resolving org.scala-lang#jline;2.10.3 ... [info] Compiling 7 Scala sources and 4 Java sources to /Users/henrik/Private/ABM/AndroidBuild/GR/bin/classes... [info] Resolving org.fusesource.jansi#jansi;1.4 ... [info] Done updating. [info] Collecting resources [info] Performing full resource merge [info] Packaging resources: resources-debug.ap_ [warn] /Users/henrik/Private/ABM/AndroidBuild/GR/src/EasyJSON/JSON.scala:19: non-variable type argument String in type pattern Map[String,Any] is unchecked since it is eliminated by erasure [warn] case m: Map[String, Any] => m.map { [warn] ^ [warn] /Users/henrik/Private/ABM/AndroidBuild/GR/src/EasyJSON/JSON.scala:23: non-variable type argument Any in type pattern java.util.List[Any] is unchecked since it is eliminated by erasure [warn] case l: java.util.List[Any] => l.map(makeJSON).mkString("[", ",", "]") [warn] ^ [warn] there were 3 feature warning(s); re-run with -feature for details [warn] three warnings found [info] Packaging /Users/henrik/Private/ABM/AndroidBuild/GR/bin/classes.jar ... [info] Done packaging. [info] Generating R.java [info] Finding dependency references for: json-smart-1.2.jar [info] Rebuilding all classes because R.java has changed [info] Compiling 7 Java sources to /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes... [info] Finding dependency references for: json-smart-1.2.jar [info] Finding dependency references for: org.scalaj:scalaj-time_2.10.0-M7:0.6 [info] Finding dependency references for: joda-time:joda-time:2.1 [info] Finding dependency references for: org.joda:joda-convert:1.2 [info] Finding dependency references for: org.scaloid:scaloid_2.10:3.0-8 [info] Finding dependency references for: classes.jar [info] Packaging /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.jar ... [info] Done packaging. [info] Generating classes.dex ProGuard, version 4.10 ProGuard is released under the GNU General Public License. You therefore must ensure that programs that link to it (android, ...) carry the GNU General Public License as well. Alternatively, you can apply for an exception with the author of ProGuard. Reading input... Reading program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jar Reading program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jar Note: duplicate definition of program class [net.minidev.json.JSONArray] Note: duplicate definition of program class [net.minidev.json.JSONAware] Note: duplicate definition of program class [net.minidev.json.JSONAwareEx] Note: duplicate definition of program class [net.minidev.json.JSONNavi] Note: duplicate definition of program class [net.minidev.json.JSONObject] Note: duplicate definition of program class [net.minidev.json.JSONStreamAware] Note: duplicate definition of program class [net.minidev.json.JSONStreamAwareEx] Note: duplicate definition of program class [net.minidev.json.JSONStyle] Note: duplicate definition of program class [net.minidev.json.JSONStyleIdent] Note: duplicate definition of program class [net.minidev.json.JSONUtil] Note: duplicate definition of program class [net.minidev.json.JSONValue] Note: duplicate definition of program class [net.minidev.json.JStylerObj$1] Note: duplicate definition of program class [net.minidev.json.JStylerObj$Escape4Web] Note: duplicate definition of program class [net.minidev.json.JStylerObj$EscapeLT] Note: duplicate definition of program class [net.minidev.json.JStylerObj$MPAgressive] Note: duplicate definition of program class [net.minidev.json.JStylerObj$MPSimple] Note: duplicate definition of program class [net.minidev.json.JStylerObj$MPTrue] Note: duplicate definition of program class [net.minidev.json.JStylerObj$MustProtect] Note: duplicate definition of program class [net.minidev.json.JStylerObj$StringProtector] Note: duplicate definition of program class [net.minidev.json.JStylerObj] Note: duplicate definition of program class [net.minidev.json.parser.ContainerFactory$1] Note: duplicate definition of program class [net.minidev.json.parser.ContainerFactory$2] Note: duplicate definition of program class [net.minidev.json.parser.ContainerFactory] Note: duplicate definition of program class [net.minidev.json.parser.ContentHandler] Note: duplicate definition of program class [net.minidev.json.parser.ContentHandlerCompressor] Note: duplicate definition of program class [net.minidev.json.parser.ContentHandlerDumy] Note: duplicate definition of program class [net.minidev.json.parser.FakeContainerFactory$FackList] Note: duplicate definition of program class [net.minidev.json.parser.FakeContainerFactory$FackMap] Note: duplicate definition of program class [net.minidev.json.parser.FakeContainerFactory] Note: duplicate definition of program class [net.minidev.json.parser.JSONParser] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserBase$MSB] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserBase] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserByteArray] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserInputStream] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserMemory] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserReader] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserStream] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserString] Note: duplicate definition of program class [net.minidev.json.parser.ParseException] Reading program jar /Users/henrik/.sbt/boot/scala-2.10.3/lib/scala-library.jar Reading program jar /Users/henrik/.ivy2/cache/org.scalaj/scalaj-time_2.10.0-M7/jars/scalaj-time_2.10.0-M7-0.6.jar Reading program jar /Users/henrik/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.1.jar Reading program jar /Users/henrik/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-1.2.jar Reading program jar /Users/henrik/.ivy2/cache/org.scaloid/scaloid_2.10/jars/scaloid_2.10-3.0-8.jar Reading program jar /Users/henrik/Private/GR/AndroidLibrary/bin/classes.jar Reading library jar [/Users/henrik/Library/android-sdk-macosx/platforms/android-19/android.jar] Note: there were 39 duplicate class definitions. (http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass) Initializing... Note: org.joda.time.DateTimeZone calls '(org.joda.time.tz.Provider)Class.forName(variable).newInstance()' Note: org.joda.time.DateTimeZone calls '(org.joda.time.tz.NameProvider)Class.forName(variable).newInstance()' Note: there were 2 class casts of dynamically created class instances. You might consider explicitly keeping the mentioned classes and/or their implementations (using '-keep'). (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclasscast) Ignoring unused library classes... Original number of library classes: 3412 Final number of library classes: 861 Shrinking... Removing unused program classes and class elements... Original number of program classes: 6014 Final number of program classes: 3 Writing output... Preparing output jar [/Users/henrik/Private/GR/AndroidLibrary/bin/classes.proguard.jar] Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jar Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jar Copying resources from program jar /Users/henrik/.sbt/boot/scala-2.10.3/lib/scala-library.jar Copying resources from program jar /Users/henrik/.ivy2/cache/org.scalaj/scalaj-time_2.10.0-M7/jars/scalaj-time_2.10.0-M7-0.6.jar Copying resources from program jar /Users/henrik/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.1.jar Copying resources from program jar /Users/henrik/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-1.2.jar Copying resources from program jar /Users/henrik/.ivy2/cache/org.scaloid/scaloid_2.10/jars/scaloid_2.10-3.0-8.jar Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/bin/classes.jar [info] Creating proguard cache: proguard-cache-30c8836b9e802ad215f841206280d8f47506fc5f.jar [info] Generating classes.dex [info] Packaged: GenericRaceLibrary-debug-unaligned.apk (200.81KB) [info] Debug package does not need signing: GenericRaceLibrary-debug-unaligned.apk [info] zipaligned: GenericRaceLibrary-debug.apk [info] Installing... [info] Packaged: ABM-debug-unaligned.apk (1.23MB) [info] Debug package does not need signing: ABM-debug-unaligned.apk [info] zipaligned: ABM-debug.apk [info] Installing... [info] [GenericRaceLibrary-debug.apk] Install finished: 200.82KB in 6.88s. 29.18KB/s [info] [ABM-debug.apk] Install finished: 1.23MB in 37.67s. 33.47KB/s [success] Total time: 91 s, completed Feb 14, 2014 4:45:02 PM

Changing the java file to scala introduces an error in compile

Preparing output jar [/Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar] Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/bin/classes.jar Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jar Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jar [trace] Stack trace suppressed: run last Custom/android:proguard for the full output. error java.io.IOException: Can't write [/Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar](Can't read [/Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jar%28;;;;!META-INF/**,!rootdoc.txt%29] %28Duplicate zip entry [json-smart-1.2.jar:net/minidev/json/JSONArray.class]%29) [error] Total time: 58 s, completed Feb 14, 2014 4:39:58 PM

pfn commented 10 years ago

[trace] Stack trace suppressed: run last Custom/android:proguard for the full output.

On Fri, Feb 14, 2014 at 7:49 AM, Henrik Kirk notifications@github.comwrote:

Sorry

android:install [info] Set current project to ABM (in build file:/Users/henrik/Private/ABM/AndroidBuild/) [info] Updating {file:/Users/henrik/Private/ABM/AndroidBuild/}GR... [info] Resolving org.scala-lang#scala-library;2.10.3 ... [info] Resolving org.scalaj#scalaj-time_2.10.0-M7;0.6 ... [info] Resolving joda-time#joda-time;2.1 ... [info] Resolving org.joda#joda-convert;1.2 ... [info] Resolving org.scaloid#scaloid_2.10;3.0-8 ... [info] Resolving org.scala-lang#scala-compiler;2.10.3 ... [info] Resolving org.scala-lang#scala-reflect;2.10.3 ... [info] Resolving org.scala-lang#jline;2.10.3 ... [info] Resolving org.fusesource.jansi#jansi;1.4 ... [info] Done updating. [info] Updating {file:/Users/henrik/Private/ABM/AndroidBuild/}Custom... [info] Resolving org.scala-lang#scala-library;2.10.3 ... [info] Resolving genericracelibrary#genericracelibrary_2.10;0.1-SNAPSHOT ... [info] Resolving org.scalaj#scalaj-time_2.10.0-M7;0.6 ... [info] Resolving joda-time#joda-time;2.1 ... [info] Collecting resources [info] Performing full resource merge [info] Resolving org.joda#joda-convert;1.2 ... [info] Resolving org.scaloid#scaloid2.10;3.0-8 ... [info] Generating R.java [info] Packaging resources: resources-debug.ap [info] Regenerating TR.scala because R.java has changed [info] Rebuilding all classes because R.java has changed [info] Resolving org.scala-lang#scala-compiler;2.10.3 ... [info] Resolving org.scala-lang#scala-reflect;2.10.3 ... [info] Resolving org.scala-lang#jline;2.10.3 ... [info] Compiling 7 Scala sources and 4 Java sources to /Users/henrik/Private/ABM/AndroidBuild/GR/bin/classes... [info] Resolving org.fusesource.jansi#jansi;1.4 ... [info] Done updating. [info] Collecting resources [info] Performing full resource merge [info] Packaging resources: resources-debug.ap_ [warn] /Users/henrik/Private/ABM/AndroidBuild/GR/src/EasyJSON/JSON.scala:19: non-variable type argument String in type pattern Map[String,Any] is unchecked since it is eliminated by erasure [warn] case m: Map[String, Any] => m.map { [warn] ^ [warn] /Users/henrik/Private/ABM/AndroidBuild/GR/src/EasyJSON/JSON.scala:23: non-variable type argument Any in type pattern java.util.List[Any] is unchecked since it is eliminated by erasure [warn] case l: java.util.List[Any] => l.map(makeJSON).mkString("[", ",", "]") [warn] ^ [warn] there were 3 feature warning(s); re-run with -feature for details [warn] three warnings found [info] Packaging /Users/henrik/Private/ABM/AndroidBuild/GR/bin/classes.jar ... [info] Done packaging. [info] Generating R.java [info] Finding dependency references for: json-smart-1.2.jar [info] Rebuilding all classes because R.java has changed [info] Compiling 7 Java sources to /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes... [info] Finding dependency references for: json-smart-1.2.jar [info] Finding dependency references for: org.scalaj:scalaj-time_2.10.0-M7:0.6 [info] Finding dependency references for: joda-time:joda-time:2.1 [info] Finding dependency references for: org.joda:joda-convert:1.2 [info] Finding dependency references for: org.scaloid:scaloid_2.10:3.0-8 [info] Finding dependency references for: classes.jar [info] Packaging /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.jar ... [info] Done packaging. [info] Generating classes.dex ProGuard, version 4.10 ProGuard is released under the GNU General Public License. You therefore must ensure that programs that link to it (android, ...) carry the GNU General Public License as well. Alternatively, you can apply for an exception with the author of ProGuard. Reading input... Reading program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jarhttp://filtered Reading program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jarhttp://filtered Note: duplicate definition of program class [net.minidev.json.JSONArray] Note: duplicate definition of program class [net.minidev.json.JSONAware] Note: duplicate definition of program class [net.minidev.json.JSONAwareEx] Note: duplicate definition of program class [net.minidev.json.JSONNavi] Note: duplicate definition of program class [net.minidev.json.JSONObject] Note: duplicate definition of program class [net.minidev.json.JSONStreamAware] Note: duplicate definition of program class [net.minidev.json.JSONStreamAwareEx] Note: duplicate definition of program class [net.minidev.json.JSONStyle] Note: duplicate definition of program class [net.minidev.json.JSONStyleIdent] Note: duplicate definition of program class [net.minidev.json.JSONUtil] Note: duplicate definition of program class [net.minidev.json.JSONValue] Note: duplicate definition of program class [net.minidev.json.JStylerObj$1] Note: duplicate definition of program class [net.minidev.json.JStylerObj$Escape4Web] Note: duplicate definition of program class [net.minidev.json.JStylerObj$EscapeLT] Note: duplicate definition of program class [net.minidev.json.JStylerObj$MPAgressive] Note: duplicate definition of program class [net.minidev.json.JStylerObj$MPSimple] Note: duplicate definition of program class [net.minidev.json.JStylerObj$MPTrue] Note: duplicate definition of program class [net.minidev.json.JStylerObj$MustProtect] Note: duplicate definition of program class [net.minidev.json.JStylerObj$StringProtector] Note: duplicate definition of program class [net.minidev.json.JStylerObj] Note: duplicate definition of program class [net.minidev.json.parser.ContainerFactory$1] Note: duplicate definition of program class [net.minidev.json.parser.ContainerFactory$2] Note: duplicate definition of program class [net.minidev.json.parser.ContainerFactory] Note: duplicate definition of program class [net.minidev.json.parser.ContentHandler] Note: duplicate definition of program class [net.minidev.json.parser.ContentHandlerCompressor] Note: duplicate definition of program class [net.minidev.json.parser.ContentHandlerDumy] Note: duplicate definition of program class [net.minidev.json.parser.FakeContainerFactory$FackList] Note: duplicate definition of program class [net.minidev.json.parser.FakeContainerFactory$FackMap] Note: duplicate definition of program class [net.minidev.json.parser.FakeContainerFactory] Note: duplicate definition of program class [net.minidev.json.parser.JSONParser] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserBase$MSB] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserBase] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserByteArray] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserInputStream] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserMemory] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserReader] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserStream] Note: duplicate definition of program class [net.minidev.json.parser.JSONParserString] Note: duplicate definition of program class [net.minidev.json.parser.ParseException] Reading program jar /Users/henrik/.sbt/boot/scala-2.10.3/lib/scala-library.jarhttp://filtered Reading program jar /Users/henrik/.ivy2/cache/org.scalaj/scalaj-time_2.10.0-M7/jars/scalaj-time_2.10.0-M7-0.6.jarhttp://filtered Reading program jar /Users/henrik/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.1.jarhttp://filtered Reading program jar /Users/henrik/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-1.2.jarhttp://filtered Reading program jar /Users/henrik/.ivy2/cache/org.scaloid/scaloid_2.10/jars/scaloid_2.10-3.0-8.jarhttp://filtered Reading program jar /Users/henrik/Private/GR/AndroidLibrary/bin/classes.jar http://filtered Reading library jar [/Users/henrik/Library/android-sdk-macosx/platforms/android-19/android.jar] Note: there were 39 duplicate class definitions. ( http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass ) Initializing... Note: org.joda.time.DateTimeZone calls '(org.joda.time.tz.Provider)Class.forName(variable).newInstance()' Note: org.joda.time.DateTimeZone calls '(org.joda.time.tz.NameProvider)Class.forName(variable).newInstance()' Note: there were 2 class casts of dynamically created class instances. You might consider explicitly keeping the mentioned classes and/or their implementations (using '-keep'). ( http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclasscast ) Ignoring unused library classes... Original number of library classes: 3412 Final number of library classes: 861 Shrinking... Removing unused program classes and class elements... Original number of program classes: 6014 Final number of program classes: 3 Writing output... Preparing output jar [/Users/henrik/Private/GR/AndroidLibrary/bin/classes.proguard.jar] Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jarhttp://filtered Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jarhttp://filtered Copying resources from program jar /Users/henrik/.sbt/boot/scala-2.10.3/lib/scala-library.jarhttp://filtered Copying resources from program jar /Users/henrik/.ivy2/cache/org.scalaj/scalaj-time_2.10.0-M7/jars/scalaj-time_2.10.0-M7-0.6.jarhttp://filtered Copying resources from program jar /Users/henrik/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.1.jarhttp://filtered Copying resources from program jar /Users/henrik/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-1.2.jarhttp://filtered Copying resources from program jar /Users/henrik/.ivy2/cache/org.scaloid/scaloid_2.10/jars/scaloid_2.10-3.0-8.jarhttp://filtered Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/bin/classes.jar http://filtered [info] Creating proguard cache: proguard-cache-30c8836b9e802ad215f841206280d8f47506fc5f.jar [info] Generating classes.dex [info] Packaged: GenericRaceLibrary-debug-unaligned.apk (200.81KB) [info] Debug package does not need signing: GenericRaceLibrary-debug-unaligned.apk [info] zipaligned: GenericRaceLibrary-debug.apk [info] Installing... [info] Packaged: ABM-debug-unaligned.apk (1.23MB) [info] Debug package does not need signing: ABM-debug-unaligned.apk [info] zipaligned: ABM-debug.apk [info] Installing... [info] [GenericRaceLibrary-debug.apk] Install finished: 200.82KB in 6.88s. 29.18KB/s [info] [ABM-debug.apk] Install finished: 1.23MB in 37.67s. 33.47KB/s [success] Total time: 91 s, completed Feb 14, 2014 4:45:02 PM

Changing the java file to scala introduces an error in compile

Preparing output jar [/Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar] Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/bin/classes.jar http://filtered Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jarhttp://filtered Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jarhttp://filtered [trace] Stack trace suppressed: run last Custom/android:proguard for the full output. error http://Custom/android:proguard java.io.IOException: Can't write /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar [error] Total time: 58 s, completed Feb 14, 2014 4:39:58 PM

Reply to this email directly or view it on GitHubhttps://github.com/pfn/android-sdk-plugin/issues/37#issuecomment-35095303 .

hkirk commented 10 years ago

last Custom/android:proguard [debug] # for debugging, don't inline methods [debug] #-dontoptimize [debug] #-optimizationpasses 5 [debug] [debug] -dontobfuscate [debug] -dontoptimize [debug] -renamesourcefileattribute SourceFile [debug] -keepattributes SourceFile,LineNumberTable [debug] -verbose [debug] -flattenpackagehierarchy [debug] [debug] ### [debug] # Android config [debug] ### [debug] -dontusemixedcaseclassnames [debug] -dontskipnonpubliclibraryclasses [debug] -dontpreverify [debug] [debug] # optimizations don't really work with dex, don't bother [debug] #-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/,!class/merging/ [debug] #-optimizationpasses 5 [debug] #-allowaccessmodification [debug] [debug] -keepattributes Annotation [debug] -keep public class com.google.vending.licensing.ILicensingService [debug] -keep public class com.android.vending.licensing.ILicensingService [debug] [debug] -keepclasseswithmembernames class * { [debug] native ; [debug] } [debug] [debug] # We want to keep methods in Activity that could be used in the XML attribute onClick [debug] -keepclassmembers class * extends android.app.Activity { [debug] public void (android.view.View); [debug] } [debug] [debug] # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations [debug] -keepclassmembers enum * { [debug] public static *[] values(); [debug] public static * valueOf(java.lang.String); [debug] } [debug] [debug] -keep class * implements android.os.Parcelable { [debug] public static final android.os.Parcelable$Creator ; [debug] } [debug] [debug] -dontnote android.annotation. [debug] -dontnote com.android.vending.licensing. [debug] -dontnote com.google.vending.licensing. [debug] -dontwarn android.support. [debug] -dontnote android.support. [debug] [debug] # keep setters in Views so that animations can still work. [debug] # see http://proguard.sourceforge.net/manual/examples.html#beans [debug] -keepclassmembers public class * extends android.view.View { [debug] void set(); [debug] * get(); [debug] } [debug] [debug] -keepclassmembers class *.R$* { [debug] public static ; [debug] } [debug] [debug] ### [debug] # Scala proguard config [debug] ### [debug] -dontnote org.xml.sax.EntityResolver [debug] -dontnote scala.concurrent.forkjoin. [debug] -dontwarn scala.beans.ScalaBeanInfo [debug] -dontwarn scala.concurrent. [debug] -dontwarn scala.reflect. [debug] -dontwarn scala.sys.process.package$ [debug] [debug] -dontwarn $$anonfun$ [debug] -dontwarn scala.collection.immutable.RedBlack$Empty [debug] -dontwarn scala.tools.,plugintemplate. [debug] [debug] -keep public class scala.reflect.ScalaSignature [debug] -keep public interface scala.ScalaObject [debug] [debug] -keepclassmembers class * { [debug] * MODULE$; [debug] } [debug] [debug] -keep class scala.collection.SeqLike { [debug] public java.lang.String toString(); [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinPool { [debug] long eventCount; [debug] int workerCounts; [debug] int runControl; [debug] scala.concurrent.forkjoin.ForkJoinPool$WaitQueueNode syncStack; [debug] scala.concurrent.forkjoin.ForkJoinPool$WaitQueueNode spareStack; [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinWorkerThread { [debug] int base; [debug] int sp; [debug] int runState; [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinTask { [debug] int status; [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.LinkedTransferQueue { [debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference head; [debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference tail; [debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference cleanMe; [debug] } [debug] # To enable ProGuard in your project, edit project.properties [debug] # to define the proguard.config property as described in that file. [debug] # [debug] # Add project specific ProGuard rules here. [debug] # By default, the flags in this file are appended to flags specified [debug] # in ${sdk.dir}/tools/proguard/proguard-android.txt [debug] # You can edit the include path and order by changing the ProGuard [debug] # include property in project.properties. [debug] # [debug] # For more details, see [debug] # http://developer.android.com/guide/developing/tools/proguard.html [debug] [debug] # Add any project specific keep options here: [debug] [debug] # If your project uses WebView with JS, uncomment the following [debug] # and specify the fully qualified class name to the JavaScript interface [debug] # class: [debug] #-keepclassmembers class fqcn.of.javascript.interface.for.webview { [debug] # public _; [debug] #} [debug] # view AndroidManifest.xml #generated:14 [debug] -keep class android.test.InstrumentationTestRunner { (...); } [debug] [debug] # view AndroidManifest.xml #generated:7 [debug] -keep class dk.abm.Main { (...); } [debug] [debug] # view res/layout/main.xml #generated:6 [debug] -keep class org.busywait.generic.race.NewsList { (...); } [debug] [debug] -dontobfuscate [debug] -dontoptimize [debug] -libraryjars [debug] /Users/henrik/Library/android-sdk-macosx/platforms/android-19/android.jar [debug] -printmapping [debug] /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/mappings.txt [debug] -injars /Users/henrik/Private/ABM/AndroidBuild/GenericRace/bin/classes.jar(!META-INF/,!rootdoc.txt):/Users/henrik/Private/ABM/AndroidBuild/GenericRace/libs/json-smart-1.2.jar(!META-INF/,!rootdoc.txt):/Users/henrik/Private/GenericRace/AndroidLibrary/libs/json-smart-1.2.jar(!META-INF/,!rootdoc.txt):/Users/henrik/.sbt/boot/scala-2.10.3/lib/scala-library.jar(!META-INF/,!rootdoc.txt):/Users/henrik/.ivy2/cache/org.scalaj/scalaj-time_2.10.0-M7/jars/scalaj-time_2.10.0-M7-0.6.jar(!META-INF/,!rootdoc.txt):/Users/henrik/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.1.jar(!META-INF/,!rootdoc.txt):/Users/henrik/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-1.2.jar(!META-INF/,!rootdoc.txt):/Users/henrik/.ivy2/cache/org.scaloid/scaloid_2.10/jars/scaloid_2.10-3.0-8.jar(!META-INF/,!rootdoc.txt):/Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.jar(!META-INF/_*,!rootdoc.txt) [debug] -outjars /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar java.io.IOException: Can't write [/Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar](Can't read [/Users/henrik/Private/GenericRace/AndroidLibrary/libs/json-smart-1.2.jar%28;;;;!META-INF/,!rootdoc.txt%29] %28Duplicate zip entry [json-smart-1.2.jar:net/minidev/json/JSONArray.class]%29) at proguard.OutputWriter.writeOutput(OutputWriter.java:264) at proguard.OutputWriter.execute(OutputWriter.java:160) at proguard.ProGuard.writeOutput(ProGuard.java:373) at proguard.ProGuard.execute(ProGuard.java:154) at android.Tasks$$anonfun$70.apply(tasks.scala:1099) at android.Tasks$$anonfun$70.apply(tasks.scala:1072) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Can't read [/Users/henrik/Private/GenericRace/AndroidLibrary/libs/json-smart-1.2.jar(;;;;!META-INF/,!rootdoc.txt)](Duplicate zip entry [json-smart-1.2.jar:net/minidev/json/JSONArray.class]) at proguard.InputReader.readInput(InputReader.java:232) at proguard.InputReader.readInput(InputReader.java:202) at proguard.OutputWriter.writeOutput(OutputWriter.java:253) at proguard.OutputWriter.execute(OutputWriter.java:160) at proguard.ProGuard.writeOutput(ProGuard.java:373) at proguard.ProGuard.execute(ProGuard.java:154) at android.Tasks$$anonfun$70.apply(tasks.scala:1099) at android.Tasks$$anonfun$70.apply(tasks.scala:1072) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Duplicate zip entry [json-smart-1.2.jar:net/minidev/json/JSONArray.class] at proguard.io.JarWriter.getOutputStream(JarWriter.java:139) at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:105) at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:92) at proguard.io.ClassRewriter.read(ClassRewriter.java:68) at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87) at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87) at proguard.io.JarReader.read(JarReader.java:65) at proguard.io.DirectoryPump.readFiles(DirectoryPump.java:65) at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53) at proguard.InputReader.readInput(InputReader.java:228) at proguard.InputReader.readInput(InputReader.java:202) at proguard.OutputWriter.writeOutput(OutputWriter.java:253) at proguard.OutputWriter.execute(OutputWriter.java:160) at proguard.ProGuard.writeOutput(ProGuard.java:373) at proguard.ProGuard.execute(ProGuard.java:154) at android.Tasks$$anonfun$70.apply(tasks.scala:1099) at android.Tasks$$anonfun$70.apply(tasks.scala:1072) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) error java.io.IOException: Can't write [/Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar](Can't read [/Users/henrik/Private/GenericRace/AndroidLibrary/libs/json-smart-1.2.jar%28;;;;!META-INF/**,!rootdoc.txt%29] %28Duplicate zip entry [json-smart-1.2.jar:net/minidev/json/JSONArray.class]%29)

pfn commented 10 years ago

jar tf json-smart-1.2.jar

Sent from my phone On Feb 15, 2014 3:53 AM, "Henrik Kirk" notifications@github.com wrote:

last Custom/android:proguard [debug] # for debugging, don't inline methods [debug] #-dontoptimize [debug] #-optimizationpasses 5 [debug] [debug] -dontobfuscate [debug] -dontoptimize [debug] -renamesourcefileattribute SourceFile [debug] -keepattributes SourceFile,LineNumberTable [debug] -verbose [debug] -flattenpackagehierarchy [debug] [debug] ### [debug] # Android config [debug] ### [debug] -dontusemixedcaseclassnames [debug] -dontskipnonpubliclibraryclasses [debug] -dontpreverify [debug] [debug] # optimizations don't really work with dex, don't bother [debug] #-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/ ,!class/merging/ [debug] #-optimizationpasses 5 [debug] #-allowaccessmodification [debug] [debug] -keepattributes Annotation [debug] -keep public class com.google.vending.licensing.ILicensingService [debug] -keep public class com.android.vending.licensing.ILicensingService [debug] [debug] -keepclasseswithmembernames class * { [debug] native ; [debug] } [debug] [debug] # We want to keep methods in Activity that could be used in the XML attribute onClick [debug] -keepclassmembers class * extends android.app.Activity { [debug] public void

(android.view.View); [debug] } [debug] [debug] # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations http://proguard.sourceforge.net/manual/examples.html#enumerations [debug] -keepclassmembers enum * { [debug] public static *[] values(); [debug] public static * valueOf(java.lang.String); [debug] } [debug] [debug] -keep class \ implements android.os.Parcelable { [debug] public static final android.os.Parcelable$Creator

; [debug] } [debug] [debug] -dontnote android.annotation. [debug] -dontnote com.android.vending.licensing. [debug] -dontnote com.google.vending.licensing. [debug] -dontwarn android.support. [debug] -dontnote android.support. [debug] [debug] # keep setters in Views so that animations can still work. [debug] # see http://proguard.sourceforge.net/manual/examples.html#beans [debug] -keepclassmembers public class * extends android.view.View { [debug] void set_( _); [debug] ** get*(); [debug] } [debug] [debug] -keepclassmembers class

.R$ { [debug] public static ; [debug] } [debug] [debug] ### [debug] # Scala proguard config [debug] ### [debug] -dontnote org.xml.sax.EntityResolver [debug] -dontnote scala.concurrent.forkjoin.* [debug] -dontwarn scala.beans.ScalaBeanInfo [debug] -dontwarn scala.concurrent. [debug] -dontwarn scala.reflect. [debug] -dontwarn scala.sys.process.package$ [debug] [debug] -dontwarn

$$anonfun$ [debug] -dontwarn scala.collection.immutable.RedBlack$Empty [debug] -dontwarn scala.tools.,plugintemplate. [debug] [debug] -keep public class scala.reflect.ScalaSignature [debug] -keep public interface scala.ScalaObject [debug] [debug] -keepclassmembers class * { [debug] * MODULE$; [debug] } [debug] [debug] -keep class scala.collection.SeqLike { [debug] public java.lang.String toString(); [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinPool { [debug] long eventCount; [debug] int workerCounts; [debug] int runControl; [debug] scala.concurrent.forkjoin.ForkJoinPool$WaitQueueNode syncStack; [debug] scala.concurrent.forkjoin.ForkJoinPool$WaitQueueNode spareStack; [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinWorkerThread { [debug] int base; [debug] int sp; [debug] int runState; [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinTask { [debug] int status; [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.LinkedTransferQueue { [debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference head; [debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference tail; [debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference cleanMe; [debug] } [debug] # To enable ProGuard in your project, edit project.properties [debug] # to define the proguard.config property as described in that file. [debug] # [debug] # Add project specific ProGuard rules here. [debug] # By default, the flags in this file are appended to flags specified [debug] # in ${sdk.dir}/tools/proguard/proguard-android.txt [debug] # You can edit the include path and order by changing the ProGuard [debug] # include property in project.properties. [debug] # [debug] # For more details, see [debug] # http://developer.android.com/guide/developing/tools/proguard.html [debug] [debug] # Add any project specific keep options here: [debug] [debug] # If your project uses WebView with JS, uncomment the following [debug] # and specify the fully qualified class name to the JavaScript interface [debug] # class: [debug] #-keepclassmembers class fqcn.of.javascript.interface.for.webview { [debug] # public

_; [debug] #} [debug] # view AndroidManifest.xml #generated:14 [debug] -keep class android.test.InstrumentationTestRunner { (...); } [debug] [debug] # view AndroidManifest.xml #generated:7 [debug] -keep class dk.abm.Main { (...); } [debug] [debug] # view res/layout/main.xml

generated:6 [debug] -keep class org.busywait.generic.race.NewsList {

(...); } [debug] [debug] -dontobfuscate [debug] -dontoptimize [debug] -libraryjars [debug] /Users/henrik/Library/android-sdk-macosx/platforms/android-19/android.jar [debug] -printmapping [debug] /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/mappings.txt [debug] -injars /Users/henrik/Private/ABM/AndroidBuild/GenericRace/bin/classes.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/Private/ABM/AndroidBuild/GenericRace/libs/json-smart-1.2.jar(!META-INF/ *,!rootdoc.txt):/Users/henrik/Private/GenericRace/AndroidLibrary/libs/json-smart-1.2.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.sbt/boot/scala-2.10.3/lib/scala-library.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.ivy2/cache/org.scalaj/scalaj-time_2.10.0-M7/jars/scalaj-time2.10.0-M7-0.6.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.1.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-1.2.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.ivy2/cache/org.scaloid/scaloid_2.10/jars/scaloid2.10-3.0-8.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.jar(!META-INF/_ ,!rootdoc.txt) [debug] -outjars /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar java.io.IOException: Can't write /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar at proguard.OutputWriter.writeOutput(OutputWriter.java:264) at proguard.OutputWriter.execute(OutputWriter.java:160) at proguard.ProGuard.writeOutput(ProGuard.java:373) at proguard.ProGuard.execute(ProGuard.java:154) at android.Tasks$$anonfun$70.apply(tasks.scala:1099) at android.Tasks$$anonfun$70.apply(tasks.scala:1072) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Can't read /Users/henrik/Private/GenericRace/AndroidLibrary/libs/json-smart-1.2.jar(;;;;!META-INF/**,!rootdoc.txt) at proguard.InputReader.readInput(InputReader.java:232) at proguard.InputReader.readInput(InputReader.java:202) at proguard.OutputWriter.writeOutput(OutputWriter.java:253) at proguard.OutputWriter.execute(OutputWriter.java:160) at proguard.ProGuard.writeOutput(ProGuard.java:373) at proguard.ProGuard.execute(ProGuard.java:154) at android.Tasks$$anonfun$70.apply(tasks.scala:1099) at android.Tasks$$anonfun$70.apply(tasks.scala:1072) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Duplicate zip entry [json-smart-1.2.jar:net/minidev/json/JSONArray.class] at proguard.io.JarWriter.getOutputStream(JarWriter.java:139) at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:105) at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:92) at proguard.io.ClassRewriter.read(ClassRewriter.java:68) at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87) at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87) at proguard.io.JarReader.read(JarReader.java:65) at proguard.io.DirectoryPump.readFiles(DirectoryPump.java:65) at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53) at proguard.InputReader.readInput(InputReader.java:228) at proguard.InputReader.readInput(InputReader.java:202) at proguard.OutputWriter.writeOutput(OutputWriter.java:253) at proguard.OutputWriter.execute(OutputWriter.java:160) at proguard.ProGuard.writeOutput(ProGuard.java:373) at proguard.ProGuard.execute(ProGuard.java:154) at android.Tasks$$anonfun$70.apply(tasks.scala:1099) at android.Tasks$$anonfun$70.apply(tasks.scala:1072) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) error http://Custom/android:proguard java.io.IOException: Can't write /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar

Reply to this email directly or view it on GitHubhttps://github.com/pfn/android-sdk-plugin/issues/37#issuecomment-35154368 .

hkirk commented 10 years ago

META-INF/MANIFEST.MF META-INF/ META-INF/maven/ META-INF/maven/net.minidev/ META-INF/maven/net.minidev/json-smart/ META-INF/maven/net.minidev/json-smart/pom.properties META-INF/maven/net.minidev/json-smart/pom.xml net/ net/minidev/ net/minidev/json/ net/minidev/json/JSONArray.class net/minidev/json/JSONAware.class net/minidev/json/JSONAwareEx.class net/minidev/json/JSONNavi.class net/minidev/json/JSONObject.class net/minidev/json/JSONStreamAware.class net/minidev/json/JSONStreamAwareEx.class net/minidev/json/JSONStyle.class net/minidev/json/JSONStyleIdent.class net/minidev/json/JSONUtil.class net/minidev/json/JSONValue.class net/minidev/json/JStylerObj$1.class net/minidev/json/JStylerObj$Escape4Web.class net/minidev/json/JStylerObj$EscapeLT.class net/minidev/json/JStylerObj$MPAgressive.class net/minidev/json/JStylerObj$MPSimple.class net/minidev/json/JStylerObj$MPTrue.class net/minidev/json/JStylerObj$MustProtect.class net/minidev/json/JStylerObj$StringProtector.class net/minidev/json/JStylerObj.class net/minidev/json/parser/ net/minidev/json/parser/ContainerFactory$1.class net/minidev/json/parser/ContainerFactory$2.class net/minidev/json/parser/ContainerFactory.class net/minidev/json/parser/ContentHandler.class net/minidev/json/parser/ContentHandlerCompressor.class net/minidev/json/parser/ContentHandlerDumy.class net/minidev/json/parser/FakeContainerFactory$FackList.class net/minidev/json/parser/FakeContainerFactory$FackMap.class net/minidev/json/parser/FakeContainerFactory.class net/minidev/json/parser/JSONParser.class net/minidev/json/parser/JSONParserBase$MSB.class net/minidev/json/parser/JSONParserBase.class net/minidev/json/parser/JSONParserByteArray.class net/minidev/json/parser/JSONParserInputStream.class net/minidev/json/parser/JSONParserMemory.class net/minidev/json/parser/JSONParserReader.class net/minidev/json/parser/JSONParserStream.class net/minidev/json/parser/JSONParserString.class net/minidev/json/parser/ParseException.class

pfn commented 10 years ago

grep -r JSONArray *.jar

Sent from my phone On Feb 15, 2014 3:53 AM, "Henrik Kirk" notifications@github.com wrote:

last Custom/android:proguard [debug] # for debugging, don't inline methods [debug] #-dontoptimize [debug] #-optimizationpasses 5 [debug] [debug] -dontobfuscate [debug] -dontoptimize [debug] -renamesourcefileattribute SourceFile [debug] -keepattributes SourceFile,LineNumberTable [debug] -verbose [debug] -flattenpackagehierarchy [debug] [debug] ### [debug] # Android config [debug] ### [debug] -dontusemixedcaseclassnames [debug] -dontskipnonpubliclibraryclasses [debug] -dontpreverify [debug] [debug] # optimizations don't really work with dex, don't bother [debug] #-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/ ,!class/merging/ [debug] #-optimizationpasses 5 [debug] #-allowaccessmodification [debug] [debug] -keepattributes Annotation [debug] -keep public class com.google.vending.licensing.ILicensingService [debug] -keep public class com.android.vending.licensing.ILicensingService [debug] [debug] -keepclasseswithmembernames class * { [debug] native ; [debug] } [debug] [debug] # We want to keep methods in Activity that could be used in the XML attribute onClick [debug] -keepclassmembers class * extends android.app.Activity { [debug] public void

(android.view.View); [debug] } [debug] [debug] # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations http://proguard.sourceforge.net/manual/examples.html#enumerations [debug] -keepclassmembers enum * { [debug] public static *[] values(); [debug] public static * valueOf(java.lang.String); [debug] } [debug] [debug] -keep class \ implements android.os.Parcelable { [debug] public static final android.os.Parcelable$Creator

; [debug] } [debug] [debug] -dontnote android.annotation. [debug] -dontnote com.android.vending.licensing. [debug] -dontnote com.google.vending.licensing. [debug] -dontwarn android.support. [debug] -dontnote android.support. [debug] [debug] # keep setters in Views so that animations can still work. [debug] # see http://proguard.sourceforge.net/manual/examples.html#beans [debug] -keepclassmembers public class * extends android.view.View { [debug] void set_( _); [debug] ** get*(); [debug] } [debug] [debug] -keepclassmembers class

.R$ { [debug] public static ; [debug] } [debug] [debug] ### [debug] # Scala proguard config [debug] ### [debug] -dontnote org.xml.sax.EntityResolver [debug] -dontnote scala.concurrent.forkjoin.* [debug] -dontwarn scala.beans.ScalaBeanInfo [debug] -dontwarn scala.concurrent. [debug] -dontwarn scala.reflect. [debug] -dontwarn scala.sys.process.package$ [debug] [debug] -dontwarn

$$anonfun$ [debug] -dontwarn scala.collection.immutable.RedBlack$Empty [debug] -dontwarn scala.tools.,plugintemplate. [debug] [debug] -keep public class scala.reflect.ScalaSignature [debug] -keep public interface scala.ScalaObject [debug] [debug] -keepclassmembers class * { [debug] * MODULE$; [debug] } [debug] [debug] -keep class scala.collection.SeqLike { [debug] public java.lang.String toString(); [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinPool { [debug] long eventCount; [debug] int workerCounts; [debug] int runControl; [debug] scala.concurrent.forkjoin.ForkJoinPool$WaitQueueNode syncStack; [debug] scala.concurrent.forkjoin.ForkJoinPool$WaitQueueNode spareStack; [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinWorkerThread { [debug] int base; [debug] int sp; [debug] int runState; [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinTask { [debug] int status; [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.LinkedTransferQueue { [debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference head; [debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference tail; [debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference cleanMe; [debug] } [debug] # To enable ProGuard in your project, edit project.properties [debug] # to define the proguard.config property as described in that file. [debug] # [debug] # Add project specific ProGuard rules here. [debug] # By default, the flags in this file are appended to flags specified [debug] # in ${sdk.dir}/tools/proguard/proguard-android.txt [debug] # You can edit the include path and order by changing the ProGuard [debug] # include property in project.properties. [debug] # [debug] # For more details, see [debug] # http://developer.android.com/guide/developing/tools/proguard.html [debug] [debug] # Add any project specific keep options here: [debug] [debug] # If your project uses WebView with JS, uncomment the following [debug] # and specify the fully qualified class name to the JavaScript interface [debug] # class: [debug] #-keepclassmembers class fqcn.of.javascript.interface.for.webview { [debug] # public

_; [debug] #} [debug] # view AndroidManifest.xml #generated:14 [debug] -keep class android.test.InstrumentationTestRunner { (...); } [debug] [debug] # view AndroidManifest.xml #generated:7 [debug] -keep class dk.abm.Main { (...); } [debug] [debug] # view res/layout/main.xml

generated:6 [debug] -keep class org.busywait.generic.race.NewsList {

(...); } [debug] [debug] -dontobfuscate [debug] -dontoptimize [debug] -libraryjars [debug] /Users/henrik/Library/android-sdk-macosx/platforms/android-19/android.jar [debug] -printmapping [debug] /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/mappings.txt [debug] -injars /Users/henrik/Private/ABM/AndroidBuild/GenericRace/bin/classes.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/Private/ABM/AndroidBuild/GenericRace/libs/json-smart-1.2.jar(!META-INF/ *,!rootdoc.txt):/Users/henrik/Private/GenericRace/AndroidLibrary/libs/json-smart-1.2.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.sbt/boot/scala-2.10.3/lib/scala-library.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.ivy2/cache/org.scalaj/scalaj-time_2.10.0-M7/jars/scalaj-time2.10.0-M7-0.6.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.1.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-1.2.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.ivy2/cache/org.scaloid/scaloid_2.10/jars/scaloid2.10-3.0-8.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.jar(!META-INF/_ ,!rootdoc.txt) [debug] -outjars /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar java.io.IOException: Can't write /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar at proguard.OutputWriter.writeOutput(OutputWriter.java:264) at proguard.OutputWriter.execute(OutputWriter.java:160) at proguard.ProGuard.writeOutput(ProGuard.java:373) at proguard.ProGuard.execute(ProGuard.java:154) at android.Tasks$$anonfun$70.apply(tasks.scala:1099) at android.Tasks$$anonfun$70.apply(tasks.scala:1072) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Can't read /Users/henrik/Private/GenericRace/AndroidLibrary/libs/json-smart-1.2.jar(;;;;!META-INF/**,!rootdoc.txt) at proguard.InputReader.readInput(InputReader.java:232) at proguard.InputReader.readInput(InputReader.java:202) at proguard.OutputWriter.writeOutput(OutputWriter.java:253) at proguard.OutputWriter.execute(OutputWriter.java:160) at proguard.ProGuard.writeOutput(ProGuard.java:373) at proguard.ProGuard.execute(ProGuard.java:154) at android.Tasks$$anonfun$70.apply(tasks.scala:1099) at android.Tasks$$anonfun$70.apply(tasks.scala:1072) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Duplicate zip entry [json-smart-1.2.jar:net/minidev/json/JSONArray.class] at proguard.io.JarWriter.getOutputStream(JarWriter.java:139) at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:105) at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:92) at proguard.io.ClassRewriter.read(ClassRewriter.java:68) at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87) at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87) at proguard.io.JarReader.read(JarReader.java:65) at proguard.io.DirectoryPump.readFiles(DirectoryPump.java:65) at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53) at proguard.InputReader.readInput(InputReader.java:228) at proguard.InputReader.readInput(InputReader.java:202) at proguard.OutputWriter.writeOutput(OutputWriter.java:253) at proguard.OutputWriter.execute(OutputWriter.java:160) at proguard.ProGuard.writeOutput(ProGuard.java:373) at proguard.ProGuard.execute(ProGuard.java:154) at android.Tasks$$anonfun$70.apply(tasks.scala:1099) at android.Tasks$$anonfun$70.apply(tasks.scala:1072) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) error http://Custom/android:proguard java.io.IOException: Can't write /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar

Reply to this email directly or view it on GitHubhttps://github.com/pfn/android-sdk-plugin/issues/37#issuecomment-35154368 .

pfn commented 10 years ago

Oh, you have json smart twice, so it's a duplicate, remove one

Sent from my phone On Feb 15, 2014 3:53 AM, "Henrik Kirk" notifications@github.com wrote:

last Custom/android:proguard [debug] # for debugging, don't inline methods [debug] #-dontoptimize [debug] #-optimizationpasses 5 [debug] [debug] -dontobfuscate [debug] -dontoptimize [debug] -renamesourcefileattribute SourceFile [debug] -keepattributes SourceFile,LineNumberTable [debug] -verbose [debug] -flattenpackagehierarchy [debug] [debug] ### [debug] # Android config [debug] ### [debug] -dontusemixedcaseclassnames [debug] -dontskipnonpubliclibraryclasses [debug] -dontpreverify [debug] [debug] # optimizations don't really work with dex, don't bother [debug] #-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/ ,!class/merging/ [debug] #-optimizationpasses 5 [debug] #-allowaccessmodification [debug] [debug] -keepattributes Annotation [debug] -keep public class com.google.vending.licensing.ILicensingService [debug] -keep public class com.android.vending.licensing.ILicensingService [debug] [debug] -keepclasseswithmembernames class * { [debug] native ; [debug] } [debug] [debug] # We want to keep methods in Activity that could be used in the XML attribute onClick [debug] -keepclassmembers class * extends android.app.Activity { [debug] public void

(android.view.View); [debug] } [debug] [debug] # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations http://proguard.sourceforge.net/manual/examples.html#enumerations [debug] -keepclassmembers enum * { [debug] public static *[] values(); [debug] public static * valueOf(java.lang.String); [debug] } [debug] [debug] -keep class \ implements android.os.Parcelable { [debug] public static final android.os.Parcelable$Creator

; [debug] } [debug] [debug] -dontnote android.annotation. [debug] -dontnote com.android.vending.licensing. [debug] -dontnote com.google.vending.licensing. [debug] -dontwarn android.support. [debug] -dontnote android.support. [debug] [debug] # keep setters in Views so that animations can still work. [debug] # see http://proguard.sourceforge.net/manual/examples.html#beans [debug] -keepclassmembers public class * extends android.view.View { [debug] void set_( _); [debug] ** get*(); [debug] } [debug] [debug] -keepclassmembers class

.R$ { [debug] public static ; [debug] } [debug] [debug] ### [debug] # Scala proguard config [debug] ### [debug] -dontnote org.xml.sax.EntityResolver [debug] -dontnote scala.concurrent.forkjoin.* [debug] -dontwarn scala.beans.ScalaBeanInfo [debug] -dontwarn scala.concurrent. [debug] -dontwarn scala.reflect. [debug] -dontwarn scala.sys.process.package$ [debug] [debug] -dontwarn

$$anonfun$ [debug] -dontwarn scala.collection.immutable.RedBlack$Empty [debug] -dontwarn scala.tools.,plugintemplate. [debug] [debug] -keep public class scala.reflect.ScalaSignature [debug] -keep public interface scala.ScalaObject [debug] [debug] -keepclassmembers class * { [debug] * MODULE$; [debug] } [debug] [debug] -keep class scala.collection.SeqLike { [debug] public java.lang.String toString(); [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinPool { [debug] long eventCount; [debug] int workerCounts; [debug] int runControl; [debug] scala.concurrent.forkjoin.ForkJoinPool$WaitQueueNode syncStack; [debug] scala.concurrent.forkjoin.ForkJoinPool$WaitQueueNode spareStack; [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinWorkerThread { [debug] int base; [debug] int sp; [debug] int runState; [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.ForkJoinTask { [debug] int status; [debug] } [debug] [debug] -keepclassmembernames class scala.concurrent.forkjoin.LinkedTransferQueue { [debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference head; [debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference tail; [debug] scala.concurrent.forkjoin.LinkedTransferQueue$PaddedAtomicReference cleanMe; [debug] } [debug] # To enable ProGuard in your project, edit project.properties [debug] # to define the proguard.config property as described in that file. [debug] # [debug] # Add project specific ProGuard rules here. [debug] # By default, the flags in this file are appended to flags specified [debug] # in ${sdk.dir}/tools/proguard/proguard-android.txt [debug] # You can edit the include path and order by changing the ProGuard [debug] # include property in project.properties. [debug] # [debug] # For more details, see [debug] # http://developer.android.com/guide/developing/tools/proguard.html [debug] [debug] # Add any project specific keep options here: [debug] [debug] # If your project uses WebView with JS, uncomment the following [debug] # and specify the fully qualified class name to the JavaScript interface [debug] # class: [debug] #-keepclassmembers class fqcn.of.javascript.interface.for.webview { [debug] # public

_; [debug] #} [debug] # view AndroidManifest.xml #generated:14 [debug] -keep class android.test.InstrumentationTestRunner { (...); } [debug] [debug] # view AndroidManifest.xml #generated:7 [debug] -keep class dk.abm.Main { (...); } [debug] [debug] # view res/layout/main.xml

generated:6 [debug] -keep class org.busywait.generic.race.NewsList {

(...); } [debug] [debug] -dontobfuscate [debug] -dontoptimize [debug] -libraryjars [debug] /Users/henrik/Library/android-sdk-macosx/platforms/android-19/android.jar [debug] -printmapping [debug] /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/mappings.txt [debug] -injars /Users/henrik/Private/ABM/AndroidBuild/GenericRace/bin/classes.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/Private/ABM/AndroidBuild/GenericRace/libs/json-smart-1.2.jar(!META-INF/ *,!rootdoc.txt):/Users/henrik/Private/GenericRace/AndroidLibrary/libs/json-smart-1.2.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.sbt/boot/scala-2.10.3/lib/scala-library.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.ivy2/cache/org.scalaj/scalaj-time_2.10.0-M7/jars/scalaj-time2.10.0-M7-0.6.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.1.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-1.2.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/.ivy2/cache/org.scaloid/scaloid_2.10/jars/scaloid2.10-3.0-8.jar(!META-INF/ ,!rootdoc.txt):/Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.jar(!META-INF/_ ,!rootdoc.txt) [debug] -outjars /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar java.io.IOException: Can't write /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar at proguard.OutputWriter.writeOutput(OutputWriter.java:264) at proguard.OutputWriter.execute(OutputWriter.java:160) at proguard.ProGuard.writeOutput(ProGuard.java:373) at proguard.ProGuard.execute(ProGuard.java:154) at android.Tasks$$anonfun$70.apply(tasks.scala:1099) at android.Tasks$$anonfun$70.apply(tasks.scala:1072) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Can't read /Users/henrik/Private/GenericRace/AndroidLibrary/libs/json-smart-1.2.jar(;;;;!META-INF/**,!rootdoc.txt) at proguard.InputReader.readInput(InputReader.java:232) at proguard.InputReader.readInput(InputReader.java:202) at proguard.OutputWriter.writeOutput(OutputWriter.java:253) at proguard.OutputWriter.execute(OutputWriter.java:160) at proguard.ProGuard.writeOutput(ProGuard.java:373) at proguard.ProGuard.execute(ProGuard.java:154) at android.Tasks$$anonfun$70.apply(tasks.scala:1099) at android.Tasks$$anonfun$70.apply(tasks.scala:1072) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.IOException: Duplicate zip entry [json-smart-1.2.jar:net/minidev/json/JSONArray.class] at proguard.io.JarWriter.getOutputStream(JarWriter.java:139) at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:105) at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:92) at proguard.io.ClassRewriter.read(ClassRewriter.java:68) at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87) at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87) at proguard.io.JarReader.read(JarReader.java:65) at proguard.io.DirectoryPump.readFiles(DirectoryPump.java:65) at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53) at proguard.InputReader.readInput(InputReader.java:228) at proguard.InputReader.readInput(InputReader.java:202) at proguard.OutputWriter.writeOutput(OutputWriter.java:253) at proguard.OutputWriter.execute(OutputWriter.java:160) at proguard.ProGuard.writeOutput(ProGuard.java:373) at proguard.ProGuard.execute(ProGuard.java:154) at android.Tasks$$anonfun$70.apply(tasks.scala:1099) at android.Tasks$$anonfun$70.apply(tasks.scala:1072) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:35) at scala.Function10$$anonfun$tupled$1.apply(Function10.scala:34) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) at sbt.std.Transform$$anon$4.work(System.scala:64) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) at sbt.Execute.work(Execute.scala:244) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) error http://Custom/android:proguard java.io.IOException: Can't write /Users/henrik/Private/ABM/AndroidBuild/ABM/bin/classes.proguard.jar

Reply to this email directly or view it on GitHubhttps://github.com/pfn/android-sdk-plugin/issues/37#issuecomment-35154368 .

hkirk commented 10 years ago

I only have one json smart jar in GM/libs/json-smart-1.2.jar and no other mention in any build.sbt files. ABM/libs are empty.

pfn commented 10 years ago

Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jarhttp://filtered Copying resources from program jar /Users/henrik/Private/GR/AndroidLibrary/libs/json-smart-1.2.jarhttp://filtered

You're doing something that's causing it to be included twice

hkirk commented 10 years ago

I was using a symbolic link to point at GM/. This made Android-SDK-plugin include it twice both as GM/ and /Users/henrik/Projects/GM

Thanks for the help locating this.

hkirk commented 10 years ago

Thanks seem to build. But found this comment in the 1.1.x release "Automatically load declared library projects from project.properties" which somehow have eluted me until now. So i removed the build.scala file and tried running