【发布时间】:2015-11-08 15:33:00
【问题描述】:
It has been pointed out that the reason I am having this problem is because of proguard 4.9,所以我继续更新到 proguard-5.2.1。但我仍然有同样的问题。有没有人找到解决方案?我通过
确认了新版本 java -jar /projects/tools/android-sdk-macosx/tools/proguard/lib/proguard.jar
而我的proguard-rule.pro 很简单
#---- Google Cloud Endpoint section
# Needed by google-api-client to keep generic types and @Key annotations accessed via reflection
-keepclassmembers class * {
@com.google.api.client.util.Key <fields>;
}
-keepattributes Signature,RuntimeVisibleAnnotations,AnnotationDefault
-dontwarn com.google.api.client.**
-dontwarn com.google.common.**
#---- Twitter
-include ../proguard-com.twitter.sdk.android.twitter.txt
-dontwarn okio.**
#---- Remove Logging
-assumenosideeffects class android.util.Log {
public static int v(...);
public static int i(...);
public static int w(...);
public static int d(...);
public static int e(...);
}
#---- support design
-dontwarn android.support.design.**
#---- Google ILicencingService
-keep public class com.google.vending.licensing.ILicensingService
-keep public class com.android.vending.licensing.ILicensingService
错误行是
Error:java.lang.IllegalArgumentException: Stack size becomes negative after instruction [72] invokestatic #16 in [com/path/android/jobqueue/BaseJob.safeRun(I)Z]
感谢任何提示。
更正
由于我使用的是 Android Studio,听起来我必须处理 Proguard 插件。如何更新插件?也许这可能会有所帮助。
【问题讨论】:
-
我也遇到了这个问题——在 5.2.1 版本上...
标签: android proguard android-proguard job-queue