2015-11-08 13 views
6

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] 

おかげです。私はProGuardのプラグインに対処するために持っているよう

CORRECTION

私は、Android Studioを使用しておりますので、それが聞こえます。プラグインを更新するにはどうすればいいですか?多分それは助けるかもしれません。

+0

私は、同様にこれを打つ - バージョン5.2.1に... – slott

答えて

0

あなたproguard-rules.proファイルに次の行を追加します。

-keep interface com.birbit.android.jobqueue.** { *; } 
関連する問題