【问题标题】:Millennial Media is not working after adding flurry SDK in androidMillennial Media 在android中添加flurry SDK后无法正常工作
【发布时间】:2016-01-27 06:41:54
【问题描述】:

我正在尝试在同一个 Android 应用中使用 Millennial Media 和 Flurry SDK。 两者都单独工作(单独测试),但在尝试初始化 Millennial Media SDK 时显示错误,并且两个 SDK 都包含在内。

下面一行显示错误,

MMSDK.initialize(this);

在我添加的proguard文件中,

-keep class com.flurry.** { *; }
-dontwarn com.flurry.**
-keepattributes *Annotation*,EnclosingMethod,Signature
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}

# Google Play Services library
-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}

-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}

-keepnames @com.google.android.gms.common.annotation.KeepName class *

-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}

-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}

#If you are using the Google Mobile Ads SDK, add the following:
# Preserve GMS ads classes
-keep class com.google.android.gms.ads.** { *;
}
-dontwarn com.google.android.gms.ads.**


#If you are using the InMobi SDK, add the following:
# Preserve InMobi Ads classes
-keep class com.inmobi.** { *;
}
-dontwarn com.inmobi.**
#If you are using the Millennial Media SDK, add the following:
# Preserve Millennial Ads classes
-keep class com.millennialmedia.** { *;
}
-dontwarn com.millennialmedia.**

并且在 logcat 中显示错误,

【问题讨论】:

    标签: android flurry millennial-media


    【解决方案1】:

    你的课程太多了。在项目 gradle 中启用 multidex。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-20
      • 1970-01-01
      • 1970-01-01
      • 2017-09-24
      • 2016-05-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多