指令后堆栈大小变为负数

编程入门 行业动态 更新时间:2024-10-16 00:24:47
本文介绍了指令后堆栈大小变为负数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有人指出,我有这个原因这个问题是由于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.googlemon.** #---- 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'

关闭优化.

更多推荐

指令后堆栈大小变为负数

本文发布于:2023-10-11 14:10:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1481929.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:堆栈   负数   指令   大小

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!