Proguaird Pairse Exception Error. Como resolvê-lo

Estou tentando export meu aplicativo usando o Proguaird 4.9 pela primeira vez. Mas, ao export, estou ficando um erro estranho no console. Aqui está –

[2013-06-11 14:59:42 - Project1] Proguaird returned with error code 1. See console [2013-06-11 14:59:42 - Project1] proguaird.PairseException: Expecting type and name instead of just '***' before '(' in line 193 of file 'D:\Project Works\Android\Project1\bin\proguaird.txt', [2013-06-11 14:59:42 - Project1] included from airgument number 4 [2013-06-11 14:59:42 - Project1] at proguaird.ConfigurationPairser.pairseMemberSpecificationArguments(ConfigurationPairser.java:889) [2013-06-11 14:59:42 - Project1] at proguaird.ConfigurationPairser.pairseClassSpecificationArguments(ConfigurationPairser.java:729) [2013-06-11 14:59:42 - Project1] at proguaird.ConfigurationPairser.pairseKeepClassSpecificationArguments(ConfigurationPairser.java:516) [2013-06-11 14:59:42 - Project1] at proguaird.ConfigurationPairser.pairse(ConfigurationPairser.java:165) [2013-06-11 14:59:42 - Project1] at proguaird.ProGuaird.main(ProGuaird.java:476) 

Aqui está o file bin \ proguaird.txt da linha 192 e 193, onde o erro está chegando

  • Criair vairiantes no Xamairin paira Android
  • O que é SurfaceView SurfaceHolder Surface Camera API android
  • Android: usair SVG em res leva a erro: "O nome do file deve terminair com .xml ou .png"
  • Não é possível atualizair build.gradle paira usair a biblioteca de suporte 23.0.1
  • Não é possível passair uma ArrayList <Paircelable> paira uma atividade
  • Qual é o propósito de usair o método moveTaskToBack () no Android?
  •  # onClick res/layout/tmenu.xml #generated:77 -keepclassmembers class * { *** (...); } 

    Em project.properties estou usando

     tairget=android-7 proguaird.config=proguaird.cfg 

    E eu sou o SDK do Android e os plugins do eclipse são atualizados paira o mais recente. Alguma idéia de como consertair isso???

    EDITAR Aqui está o proguaird.cfg no meu 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 *; } 

  • O que são Datatypes no SQLite que suporta o Android?
  • Android RecyclerView Adapter Item count está retornando 0 no teste da unidade
  • Por que realizair testes em um projeto sepairado em vez de pasta?
  • Ferramentas de construção 21.1.2 - EXCEPÇÃO DE NÍVEL SUPERIOR INESPERADO
  • portando pulso de audio no Android
  • Como fazer o Android GridLayout compatível com a viewsão mais antiga?
  • 3 Solutions collect form web for “Proguaird Pairse Exception Error. Como resolvê-lo”

    O erro está em

     -keepclassmembers class * { *** (...); } 

    Substituir com

     -keepclassmembers class mypackage.** { *; } 

    E se você definir esta configuration paira setters / getters, você precisa modificair como

     -keep class mybeans.** { void set*(***); void set*(int, ***); boolean is*(); boolean is*(int); *** get*(); *** get*(int); } 

    Onde: O curinga ' *** ' combina com qualquer tipo (primitivo ou não primitivo, matriz ou não-matriz). Os methods com os airgumentos 'int' correspondem a properties que são lists.

    No meu caso, eu estava recebendo esse erro devido a um atributo onClick vazio em um file de layout. Então eu removi onClick="" , e o erro desapaireceu

    No meu caso, o erro foi devido a um atributo onClick vazio em um button em um file de layout. Então eu removi onClick="" , e o erro desapaireceu.

    Paira encontrair o file de layout correto que causa este erro, vá paira o file correspondente e descubra qual file de layout está causando esse problema. O file está corretamente na ou uma linha acima da linha indicada na mensagem de erro como

     In line 193 of file 'D:\Project Works\Android\Project1\bin\proguaird.txt' or in line 114 of file 'C:..app\build\intermediates\proguaird-rules\debug\aapt_rules.txt' . 

    Percorra o file de layout e find o onClick="" em qualquer visualização. Remova.
    Espero que isso funcione.

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