LEADBOLT广告proguard错误第1行

时间:2015-08-04 07:06:55

标签: android leadbolt android-proguard

我在我的Android应用程序中集成了LEADBOLT广告,我使用的是Proguard。当我导出apk时发生以下错误。 我在这里发布了控制台错误和Proguard-project.text

我在我的Android应用程序中包含AdColony,现在我正在尝试使用proguard导出我的应用程序。我在这里和这里找到了AdColony的配置。我试图将它们分开包含在proguard.cfg中,但它没有用。

控制台错误

  [2015-08-04 12:22:44 - Leadboat Demo] Proguard returned with error code 1. See console
    [2015-08-04 12:22:44 - Leadboat Demo]       You should check if you need to specify additional program jars.
    [2015-08-04 12:22:44 - Leadboat Demo] Unexpected error while performing partial evaluation:
    [2015-08-04 12:22:44 - Leadboat Demo]   Class       = [com/apptracker/android/module/AppModuleLoader]
    [2015-08-04 12:22:44 - Leadboat Demo]   Method      = [onFailed(Lcom/apptracker/android/listener/AppModuleListener;Ljava/lang/String;Ljava/lang/String;Z)V]
    [2015-08-04 12:22:44 - Leadboat Demo]   Exception   = [java.lang.ArrayIndexOutOfBoundsException] (-1)
    [2015-08-04 12:22:44 - Leadboat Demo] java.lang.ArrayIndexOutOfBoundsException: -1
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.optimize.peephole.BranchTargetFinder.visitConstantInstruction(BranchTargetFinder.java:492)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.classfile.instruction.ConstantInstruction.accept(ConstantInstruction.java:157)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.classfile.attribute.CodeAttribute.instructionsAccept(CodeAttribute.java:138)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.classfile.attribute.CodeAttribute.instructionsAccept(CodeAttribute.java:110)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.optimize.peephole.BranchTargetFinder.visitCodeAttribute(BranchTargetFinder.java:354)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.classfile.attribute.CodeAttribute.accept(CodeAttribute.java:101)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.optimize.evaluation.PartialEvaluator.visitCodeAttribute0(PartialEvaluator.java:261)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.optimize.evaluation.PartialEvaluator.visitCodeAttribute(PartialEvaluator.java:181)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.classfile.attribute.CodeAttribute.accept(CodeAttribute.java:101)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.classfile.ProgramMethod.attributesAccept(ProgramMethod.java:79)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.classfile.attribute.visitor.AllAttributeVisitor.visitProgramMember(AllAttributeVisitor.java:95)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.classfile.util.SimplifiedVisitor.visitProgramMethod(SimplifiedVisitor.java:91)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.classfile.ProgramMethod.accept(ProgramMethod.java:71)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.classfile.ProgramClass.methodsAccept(ProgramClass.java:504)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.classfile.visitor.AllMethodVisitor.visitProgramClass(AllMethodVisitor.java:47)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.classfile.ProgramClass.accept(ProgramClass.java:346)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.classfile.ClassPool.classesAccept(ClassPool.java:116)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.optimize.Optimizer.execute(Optimizer.java:372)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.ProGuard.optimize(ProGuard.java:306)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.ProGuard.execute(ProGuard.java:115)
    [2015-08-04 12:22:44 - Leadboat Demo]   at proguard.ProGuard.main(ProGuard.java:492)

Proguard文件代码

enter code here

-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*

-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable

-dontwarn java.awt.**
-dontnote java.awt.**
-dontwarn com.badlogic.gdx.jnigen.**


-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService

-keep class com.android.vending.billing.**


-keepclasseswithmembernames class * {
    native <methods>;
}

-keepclasseswithmembers class * {
    public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembers class * {
    public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers class * extends android.app.Activity {
    public void *(android.view.View);
}

-keepclassmembers enum * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
    public static final android.os.Parcelable$Creator *;
}

-keepnames class com.badlogic.gdx.backends.android.AndroidInput*
-keepclassmembers class com.badlogic.gdx.backends.android.AndroidInput* {<init>(...);}
#GOOGLE PLAY SERVICES
-keep class com.google.** { *;}
-keep interface com.google.** { *;}
-dontwarn com.google.**

-dontwarn sun.misc.Unsafe
-dontwarn com.google.common.collect.MinMaxPriorityQueue
-keepattributes *Annotation*,Signature
-keep class * extends com.google.api.client.json.GenericJson {*;}
-keep class com.google.api.services.drive.** {*;}

# AdColony
-dontwarn android.webkit.** 
-dontwarn com.jirbo.adcolony.**
-keep class com.jirbo.adcolony.**{*;}

-keep class com.apptracker.** { *; } 
-keepclassmembers class **.R$* { 
    public static <fields>; 
} 
-keep class **.R$*

0 个答案:

没有答案