Skip to content

Instantly share code, notes, and snippets.

@auramo
Created May 11, 2014 10:43
Show Gist options
  • Save auramo/ba9121a71f3cd68990b3 to your computer and use it in GitHub Desktop.
Save auramo/ba9121a71f3cd68990b3 to your computer and use it in GitHub Desktop.
> android:run
[info] Updating {file:/Users/auramo/src/allacca/}allacca...
[info] Resolving jline#jline;2.11 ...
[info] Done updating.
[info] Collecting resources
[info] Performing full resource merge
[info] Generating R.java
[info] Packaging resources: resources-debug.ap_
[info] Rebuilding all classes because R.java has changed
[info] Regenerating TR.scala because R.java has changed
[info] Compiling 13 Scala sources and 2 Java sources to /Users/auramo/src/allacca/target/android-bin/classes...
[warn] /Users/auramo/src/allacca/src/main/scala/fi/allacca/weeks.scala:366: method setBackgroundDrawable in class View is deprecated: see corresponding Javadoc for more information.
[warn] dayView.setBackgroundDrawable(rectShapeDrawable)
[warn] ^
[warn] one warning found
[info] Packaging /Users/auramo/src/allacca/target/android-bin/classes.jar ...
[info] Done packaging.
[info] Finding dependency references for: junit:junit:4.10
[info] Finding dependency references for: org.hamcrest:hamcrest-core:1.1
[info] Finding dependency references for: classes.jar
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/auramo/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.0.jar] (filtered)
Reading program jar [/Users/auramo/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.3.jar] (filtered)
Reading program jar [/Users/auramo/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-1.4.jar] (filtered)
Reading program jar [/Users/auramo/.ivy2/cache/junit/junit/jars/junit-4.10.jar] (filtered)
Reading program jar [/Users/auramo/.ivy2/cache/org.hamcrest/hamcrest-core/jars/hamcrest-core-1.1.jar] (filtered)
Note: duplicate definition of program class [org.hamcrest.BaseDescription]
Note: duplicate definition of program class [org.hamcrest.BaseMatcher]
Note: duplicate definition of program class [org.hamcrest.core.AllOf]
Note: duplicate definition of program class [org.hamcrest.core.AnyOf]
Note: duplicate definition of program class [org.hamcrest.core.DescribedAs]
Note: duplicate definition of program class [org.hamcrest.core.Is]
Note: duplicate definition of program class [org.hamcrest.core.IsAnything]
Note: duplicate definition of program class [org.hamcrest.core.IsEqual]
Note: duplicate definition of program class [org.hamcrest.core.IsInstanceOf]
Note: duplicate definition of program class [org.hamcrest.core.IsNot]
Note: duplicate definition of program class [org.hamcrest.core.IsNull]
Note: duplicate definition of program class [org.hamcrest.core.IsSame]
Note: duplicate definition of program class [org.hamcrest.CoreMatchers]
Note: duplicate definition of program class [org.hamcrest.Description]
Note: duplicate definition of program class [org.hamcrest.Factory]
Note: duplicate definition of program class [org.hamcrest.internal.ArrayIterator]
Note: duplicate definition of program class [org.hamcrest.internal.SelfDescribingValue]
Note: duplicate definition of program class [org.hamcrest.internal.SelfDescribingValueIterator]
Note: duplicate definition of program class [org.hamcrest.Matcher]
Note: duplicate definition of program class [org.hamcrest.SelfDescribing]
Note: duplicate definition of program class [org.hamcrest.StringDescription]
Reading program jar [/Users/auramo/src/allacca/target/android-bin/classes.jar] (filtered)
Reading library jar [/Applications/devtools/adt-bundle-mac-x86_64-20131030/sdk/platforms/android-19/android.jar]
Note: duplicate definition of library class [junit.framework.TestListener]
Note: duplicate definition of library class [junit.framework.ComparisonFailure]
Note: duplicate definition of library class [junit.framework.TestCase]
Note: duplicate definition of library class [junit.framework.Assert]
Note: duplicate definition of library class [junit.framework.AssertionFailedError]
Note: duplicate definition of library class [junit.framework.Protectable]
Note: duplicate definition of library class [junit.framework.TestFailure]
Note: duplicate definition of library class [junit.framework.Test]
Note: duplicate definition of library class [junit.framework.TestResult]
Note: duplicate definition of library class [junit.framework.TestSuite]
Note: duplicate definition of library class [junit.runner.BaseTestRunner]
Note: duplicate definition of library class [junit.runner.Version]
Note: there were 33 duplicate class definitions.
(http://proguard.sourceforge.net/manual/troubleshooting.html#duplicateclass)
Initializing...
Note: the configuration refers to the unknown class 'scala.ScalaObject'
Warning: library class android.test.AndroidTestCase extends or implements program class junit.framework.TestCase
Warning: library class android.test.AndroidTestRunner extends or implements program class junit.runner.BaseTestRunner
Warning: library class android.test.InstrumentationTestCase extends or implements program class junit.framework.TestCase
Warning: library class android.test.InstrumentationTestSuite extends or implements program class junit.framework.TestSuite
Warning: library class android.test.suitebuilder.TestSuiteBuilder$FailedToCreateTests extends or implements program class junit.framework.TestCase
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 1 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
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)
Warning: there were 5 instances of library classes depending on program classes.
You must avoid such dependencies, since the program classes will
be processed, while the library classes will remain unchanged.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dependency)
[trace] Stack trace suppressed: run last android:proguard for the full output.
[error] (android:proguard) java.io.IOException: Please correct the above warnings first.
[error] Total time: 28 s, completed May 11, 2014 1:40:32 PM
> last 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 <methods>;
[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 <fields>;
[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:7
[debug] -keep class fi.allacca.AllaccaMain { <init>(...); }
[debug]
[debug] # view AndroidManifest.xml #generated:13
[debug] -keep class fi.allacca.EditEventActivity { <init>(...); }
[debug]
[debug] -libraryjars
[debug] /Applications/devtools/adt-bundle-mac-x86_64-20131030/sdk/platforms/android-19/android.jar
[debug] -printmapping
[debug] /Users/auramo/src/allacca/target/android-bin/mappings.txt
[debug] -injars /Users/auramo/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.0.jar(!META-INF/**,!rootdoc.txt):/Users/auramo/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.3.jar(!META-INF/**,!rootdoc.txt):/Users/auramo/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-1.4.jar(!META-INF/**,!rootdoc.txt):/Users/auramo/.ivy2/cache/junit/junit/jars/junit-4.10.jar(!META-INF/**,!rootdoc.txt):/Users/auramo/.ivy2/cache/org.hamcrest/hamcrest-core/jars/hamcrest-core-1.1.jar(!META-INF/**,!rootdoc.txt):/Users/auramo/src/allacca/target/android-bin/classes.jar(!META-INF/**,!rootdoc.txt)
[debug] -outjars /Users/auramo/src/allacca/target/android-bin/classes.proguard.jar
java.io.IOException: Please correct the above warnings first.
at proguard.Initializer.execute(Initializer.java:369)
at proguard.ProGuard.initialize(ProGuard.java:212)
at proguard.ProGuard.execute(ProGuard.java:87)
at android.Tasks$$anonfun$71.apply(tasks.scala:1139)
at android.Tasks$$anonfun$71.apply(tasks.scala:1112)
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:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
[error] (android:proguard) java.io.IOException: Please correct the above warnings first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment