指令后堆栈大小变为负数 [英] Stack size becomes negative after instruction

查看:549
本文介绍了指令后堆栈大小变为负数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人指出,我有这个原因这个问题是由于proguard 4.9 造成的,所以我继续将其更新为proguard-5.2.1.但是我仍然有同样的问题.有没有人找到解决方案?我通过

It has been pointed out that the reason I am having this problem is because of proguard 4.9, so I went ahead and updated to proguard-5.2.1. But I am still having the same problem. Has anyone found a solution? I confirmed the new version through

 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插件.如何更新插件?也许有帮助.

Since I am using Android Studio, it sounds like I have to deal with the Proguard plugin. How do I update the plugin? Maybe that might help.

推荐答案

作为选择,您可以将build.gradle更改为

As an option, you can change the build.gradle from

proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project.txt'

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'

关闭优化.

这篇关于指令后堆栈大小变为负数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆