简体   繁体   中英

Proguard - Proguard returned with error code 1. See console

I have issues with proguard, I just configured Bugsense and I have used they configuration advices, I have searched on google and stackoverflow and usually ppl can see in console the line or problem, but in my case I can't know wich is the conflict.

I'm newbie in android.

This is my log->

[2013-10-24 21:20:56 - UploadToServer] Proguard returned with error code 1. See console
    [2013-10-24 21:20:56 - UploadToServer] proguard.ParseException: Expecting class member description or closing '}' before '-include' in argument number 5
    [2013-10-24 21:20:56 - UploadToServer]  at proguard.ConfigurationParser.readNextWord(ConfigurationParser.java:1133)
    [2013-10-24 21:20:56 - UploadToServer]  at proguard.ConfigurationParser.parseClassSpecificationArguments(ConfigurationParser.java:685)
    [2013-10-24 21:20:56 - UploadToServer]  at proguard.ConfigurationParser.parseKeepClassSpecificationArguments(ConfigurationParser.java:490)
    [2013-10-24 21:20:56 - UploadToServer]  at proguard.ConfigurationParser.parse(ConfigurationParser.java:138)
    [2013-10-24 21:20:56 - UploadToServer]  at proguard.ProGuard.main(ProGuard.java:484)

This is my proguard-project.txt

-optimizationpasses 25 
-dontusemixedcaseclassnames 
-dontskipnonpubliclibraryclasses 
-dontpreverify 
-verbose 
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* 
-printmapping out.map 
-renamesourcefileattribute SourceFile 
-keepattributes SourceFile,LineNumberTable 
-keep class com.bugsense.** { *; } 
-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 *; 

And this is my project.properties

proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-17
-keep class com.bugsense.** { *; }
-libraryjars libs/bugsense-3.5.jar

Thanks to all

您的proguard配置最后似乎缺少}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM