我已经生成了一个具有proguard的apk文件但是当我尝试与azure连接时它会给出一些例外
答案 0 :(得分:0)
尝试在jar文件中添加类的例外。例如我使用roboguice所以我添加了这个:
# Keep the classes in the external jars
-keep class com.google.inject.** { *; }
-keep class javax.inject.** { *; }
-keep class javax.annotation.** { *; }
-keep class roboguice.** { *; }
我也在使用XStream,所以在我的proguard-project.txt中我添加了以下内容:
#Keep the classes for XStream jar
-keep class com.thoughtworks.xstream.converters.extended.SubjectConverter { *; }
-keep class com.thoughtworks.xstream.converters.extended.ThrowableConverter { *; }
-keep class com.thoughtworks.xstream.converters.extended.StackTraceElementConverter { *; }
-keep class com.thoughtworks.xstream.converters.extended.CurrencyConverter { *; }
-keep class com.thoughtworks.xstream.converters.extended.RegexPatternConverter { *; }
-keep class com.thoughtworks.xstream.converters.extended.CharsetConverter { *; }
-keep class com.thoughtworks.xstream.annotations.** { *; }
所以我想尝试添加jar文件提供给你的类
答案 1 :(得分:0)
我已将-keepattributes Signature,*Annotation*,EnclosingMethod
添加到我的程序中
工作正常