Proguard的 - Proguard的错误code 1.见控制台返回 [英] Proguard - Proguard returned with error code 1. See console
本文介绍了Proguard的 - Proguard的错误code 1.见控制台返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有ProGuard的问题,我刚刚配置Bugsense,我已经用他们的配置建议,我已搜查谷歌和计算器,通常脂肪酶可以在控制台中的线路或问题看,但对我来说,我不能知道至极是的矛盾。
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.
我在android的新手。
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)
这是我的ProGuard-project.txt
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 *;
这是我的project.properties
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
感谢所有
推荐答案
您似乎缺少一个}
结尾您的ProGuard配置。
You seem to be missing a }
at the end your proguard config.
这篇关于Proguard的 - Proguard的错误code 1.见控制台返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文