android - Proguard return with error code 1 proguard.ParseException -


i tried export android project apk, , while building got error on console, cycled through google, didn't find error this:

[2013-09-24 18:09:42 - google] proguard returned error code 1. see console [2013-09-24 18:09:42 - google] proguard.parseexception: expecting jar or directory name    before '-include' in argument number 3 [2013-09-24 18:09:42 - google]  @ proguard.configurationparser.readnextword(configurationparser.java:1133) [2013-09-24 18:09:42 - google]  @ proguard.configurationparser.parseclasspathargument(configurationparser.java:249) [2013-09-24 18:09:42 - google]  @ proguard.configurationparser.parse(configurationparser.java:130) [2013-09-24 18:09:42 - google]  @ proguard.proguard.main(proguard.java:484) 

and proguard.cfg file:

-optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose -optimizations !code/simplification/arithmetic,!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.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 <methods>; }  -keepclasseswithmembers class * {     public <init>(android.content.context, android.util.attributeset); }  -keepclasseswithmembers 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.parcelable {   public static final android.os.parcelable$creator *; }  -dontskipnonpubliclibraryclassmembers -libraryjars 

any appreciate!

the last line in configuration file specifies option -libraryjars without expected argument. in case, should remove line, since android build process automatically specifies necessary -injars/-outjars/-libraryjars options you.

note recent versions of android sdk have deprecated proguard.cfg in favor of file proguard-project.txt empty, bulk of configuration in shared internal configuration file (all specified in project.properties).


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -