java - Exporting Android application with ProGuard gives ParseException error -


i getting following error when exporting android application proguard (via adt eclipse).

"proguard.parseexception: expecting opening '(' or separator ';' before 'name'"

i see other proguard parse error problems solved upgrading proguard , sdk; however, no luck here after upgrades. 1 seen / solved before? thank in advance help!

environment

adt 22.0.1

eclipse sdk 4.2.2

android sdk 4.2, sdk tools rev 22

proguard v4.9

console log

proguard returned error code 1. see console proguard.parseexception: expecting opening '(' or separator ';' before 'name' in line 155 of file '~/project/bin/proguard.txt', included argument number 4 @ proguard.configurationparser.parsememberspecificationarguments(configurationparser.java:966) @ proguard.configurationparser.parseclassspecificationarguments(configurationparser.java:729) @ proguard.configurationparser.parsekeepclassspecificationarguments(configurationparser.java:516) @ proguard.configurationparser.parse(configurationparser.java:165) @ proguard.proguard.main(proguard.java:476)

line 55 project

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

proguard.cfg

-optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose -optimizations !code/simplification/arithmetic,!field/,!class/merging/

-assumenosideeffects class android.util.log { public static boolean isloggable(java.lang.string, int); public static int v(...); public static int d(...); }

-printmapping out.map

-renamesourcefileattribute sourcefile -keepattributes sourcefile,linenumbertable

-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.broadcastreceiver -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

-keepclasseswithmembernames class * { native ; }

-keepclasseswithmembernames class * { public (android.content.context, android.util.attributeset); }

-keepclasseswithmembernames class * { public (android.content.context, android.util.attributeset, int); }

-keepclassmembers enum * { public static *[] values(); public static * valueof(java.lang.string); }

-keep class * implements android.os.parcelable { public static final android.os.parcelable$creator *; }

-keepclassmembers class * extends android.content.context { public void *(android.view.view); public void *(android.view.menuitem); }

-keepclassmembers class *.r$ { public static ; }

i think problem might :

-keepclasseswithmembernames class * { native ; }

you try :

-keepclasseswithmembernames class * {      native <methods>;  } 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -