Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了android – 指令后堆栈大小变为负数大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
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插件.如何更新插件?也许这可能有所帮助.

解决方法

将此行添加到proguard-rules.pro文件中:
-keep interface com.birbit.android.jobqueue.** { *; }

大佬总结

以上是大佬教程为你收集整理的android – 指令后堆栈大小变为负数全部内容,希望文章能够帮你解决android – 指令后堆栈大小变为负数所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。