Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/185.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在安卓系统中添加flurry SDK后,千年媒体无法运行_Android_Flurry_Millennial Media - Fatal编程技术网

Android 在安卓系统中添加flurry SDK后,千年媒体无法运行

Android 在安卓系统中添加flurry SDK后,千年媒体无法运行,android,flurry,millennial-media,Android,Flurry,Millennial Media,我正在尝试在同一个android应用程序中使用千年媒体和Flurry SDK。 两者都单独工作(单独测试),但在尝试初始化Millennial Media SDK时显示错误,并且两个SDK都包含在内 在下面的行中显示错误 MMSDK.initialize(this); 在我添加的proguard文件中 -keep class com.flurry.** { *; } -dontwarn com.flurry.** -keepattributes *Annotation*,EnclosingMe

我正在尝试在同一个android应用程序中使用千年媒体和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.**
-keep class com.flurry.*{*;}
-dontwarn com.flurry**
-keepattributes*注释*、封闭方法、签名
-keepclassswithmembers类*{
public(android.content.Context,android.util.AttributeSet,int);
}
#谷歌播放服务库
-keep class*扩展了java.util.ListResourceBundle{
受保护对象[][]getContents();
}
-保持公共类com.google.android.gms.common.internal.safeparcel.SafeParcelable{
公共静态最终***空;
}
-keepnames@com.google.android.gms.common.annotation.KeepName类*
-keepclassmembernames类*{
@com.google.android.gms.common.annotation.KeepName*;
}
-keepnames类*实现android.os.Parcelable{
公共静态最终**创建者;
}
#如果您正在使用Google Mobile Ads SDK,请添加以下内容:
#保留GMS广告类
-保持类com.google.android.gms.ads.*{*;
}
-dontwarn com.google.android.gms.ads**
#如果您正在使用InMobi SDK,请添加以下内容:
#保留InMobi广告类
-保持类com.inmobi.*{*;
}
-dontwarn com.inmobi**
#如果您正在使用Millennial Media SDK,请添加以下内容:
#保护千禧年广告类
-保持类com.millennialmedia.*{*;
}
-dontwarn com.millennialmedia**
以及在logcat中显示的错误,
你的课程太多了。在project gradle中启用多索引