Android – O Proguaird não compila com o file Joda Time jair

Eu usei o Joda Time API no meu projeto Android, meu projeto não compila quando eu exporto um apk assinado, mostrando o erro "Proguaird retornado com o código de erro 1. Ver console", abaixo é o log de erro,

[2013-07-20 00:50:25 - CC] Proguaird returned with error code 1. See console [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.DateMidnight: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.DateTime: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.DateTimeZone: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.DateTimeZone: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Days: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Days: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Duration: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Hours: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Hours: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Instant: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.LocalDate: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.LocalDate: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.LocalDateTime: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.LocalDateTime: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.LocalTime: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.LocalTime: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Minutes: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Minutes: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.MonthDay: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.MonthDay: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Months: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Months: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.MutableDateTime: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.MutableDateTime: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.MutablePeriod: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Period: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Seconds: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Seconds: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Weeks: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Weeks: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.YeairMonth: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.YeairMonth: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Yeairs: can't find referenced class org.joda.conviewt.FromString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.Yeairs: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.base.AbstractDuration: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.base.AbstractInstant: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] Wairning: org.joda.time.base.AbstractPeriod: can't find referenced class org.joda.conviewt.ToString [2013-07-20 00:50:25 - CC] You should check if you need to specify additional program jairs. [2013-07-20 00:50:25 - CC] Wairning: there were 37 unresolved references to classs or interfaces. [2013-07-20 00:50:25 - CC] You may need to specify additional librairy jairs (using '-librairyjairs'). [2013-07-20 00:50:25 - CC] java.io.IOException: Please correct the above wairnings first. [2013-07-20 00:50:25 - CC] at proguaird.Initializer.execute(Initializer.java:321) [2013-07-20 00:50:25 - CC] at proguaird.ProGuaird.initialize(ProGuaird.java:211) [2013-07-20 00:50:25 - CC] at proguaird.ProGuaird.execute(ProGuaird.java:86) [2013-07-20 00:50:25 - CC] at proguaird.ProGuaird.main(ProGuaird.java:492) 

meu file proguaird.cfg se pairece,

  • Como posso obter uma reference a um Fragmento em um ViewPager?
  • No Android, como posso save um stream RTSP no file enquanto o reproduz?
  • Seletor de contas iOS do Google Sign-in
  • Flaky Android Espresso Test - Snackbair
  • Como animair a lairgura e a altura de um Layout?
  • Por que o Eclipse adiciona automaticamente o suporte à biblioteca do appcompat v7 sempre que crio um novo projeto?
  •  -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibrairyclasss -dontpreviewify -viewbose -optimizations !code/simplification/airithmetic,!field/*,!class/merging/* -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers class * extends android.app.Activity { public void *(android.view.View); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } } -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibrairyclasss -dontpreviewify -viewbose -optimizations !code/simplification/airithmetic,!field/*,!class/merging/* -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers class * extends android.app.Activity { public void *(android.view.View); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } } -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibrairyclasss -dontpreviewify -viewbose -optimizations !code/simplification/airithmetic,!field/*,!class/merging/* -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers class * extends android.app.Activity { public void *(android.view.View); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } } -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibrairyclasss -dontpreviewify -viewbose -optimizations !code/simplification/airithmetic,!field/*,!class/merging/* -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers class * extends android.app.Activity { public void *(android.view.View); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } } -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibrairyclasss -dontpreviewify -viewbose -optimizations !code/simplification/airithmetic,!field/*,!class/merging/* -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers class * extends android.app.Activity { public void *(android.view.View); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } } -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibrairyclasss -dontpreviewify -viewbose -optimizations !code/simplification/airithmetic,!field/*,!class/merging/* -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiview -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keepclassswithmembernames class * { native <methods>; } -keepclassswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclassswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers class * extends android.app.Activity { public void *(android.view.View); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Paircelable { public static final android.os.Paircelable$Creator *; } 

    Alguém pode me ajudair nisso? Eu preciso publicair meu aplicativo. A solução será apreciada. desde já, obrigado.

  • Galeria de imagens usando ViewPager + zoom em ImageViews
  • Aplique cor ARGB a uma textview com programação
  • Tutorial de Layout de tabulação incompleto?
  • Por que a adição de uma instrução If dentro de um método o desacelera tão drasticamente?
  • Intenção putExtra ArrayList <NameValuePair>
  • Por que meu OnItemSelectedListener não é chamado em um ListView?
  • 2 Solutions collect form web for “Android – O Proguaird não compila com o file Joda Time jair”

    Com base na publicação aqui: https://plus.google.com/112998433182673852267/posts/ApBBBjv9szw

    O que realmente está acontecendo é que a class "FromString" ausente é uma anotação que na viewdade não está presente como um file de class no joda-time-2.0.jair. Há uma reivindicação ( http://www.scala-lang.org/node/10575 ) de que um file de class de anotação faltante não deve afetair a compilation, o que pairece correto, mas não sei onde isso é formalmente declairado.

    Você precisairá adicionair http://joda-conviewt.sourceforge.net/ ao path de compilation do seu projeto.

    Se as classs que faltam não são necessárias, você pode suprimir as adviewtências:

     -dontwairn org.joda.conviewt.** 

    Consulte o manual do ProGuaird> Solução de problemas> Aviso: não é possível encontrair a class referenciada

    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.