Actually this is an answer and not a question anymore: I did spent many hours on Windows using JodaTime to be included in my Android project using ProGuard
Proguard Configuration:
-libraryjars C:\Users\Reto\Documents\GitHub\advanceIT\LoveClockPAY\libs\joda-time-2.1.jar
I had the following errors:
ProGuard didnt find my JAR and said:
Can't read [C:\Users\Reto\Documents\GitHub\advanceIT\LoveClockPAY\libs\joda-time-2.1.jar] (No such file or directory)
Solution
-libraryjars libs/joda-time-2.1.jar
ProGuard didnt wanna compile and thrown many line of errors like this:
Warning: org.joda.time.base.AbstractDuration can't find referenced class org.joda.convert.ToString
Solution
# Exclude those 2 dependency classes, cause otherwise it wont compile
-dontwarn org.joda.convert.FromString
-dontwarn org.joda.convert.ToString
Or alternatively as solution for problem 2. you can add an implementation included in joda-convert-xxx.jar. It can be found on the joda-convert homepage
Then just add a following line into your proguard configuration :
-libraryjars YOUR_DIR_WITHS_JARS/joda-convert-1.3.1.jar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With