乱舞集成了Android应用程序提供了一个错误"找不到类的com.flurry.sdk.i“,从方法引用com.flurry.sdk.hu.a" [英] Flurry integrations with Android App gives an error "Could not find class 'com.flurry.sdk.i', referenced from method com.flurry.sdk.hu.a"

查看:281
本文介绍了乱舞集成了Android应用程序提供了一个错误"找不到类的com.flurry.sdk.i“,从方法引用com.flurry.sdk.hu.a"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我到目前为止已经试过:

This is what I've tried so far:

public class ScoreUpApp extends Application {
private static ScoreUpApp scoreUpDataCache;
public static final String TAG = "MyApp";

@Override
public void onCreate() {
    // TODO Auto-generated method stub
    super.onCreate();

    // configure Flurry
    FlurryAgent.setLogEnabled(true);
    // init Flurry
    FlurryAgent.init(this, "V88JVYGFF7QX5D9RYZG2");

}
}

这是我所得到的误差的logcat

03-17 14:06:41.924: E/dalvikvm(30175): Could not find class 'com.flurry.sdk.i', referenced from method com.flurry.sdk.hu.a

03-17 14:31:36.694: W/dalvikvm(31798): VFY: unable to resolve const-class 2065 (Lcom/flurry/sdk/i;) in Lcom/flurry/sdk/hu;

感谢你。

推荐答案

此警告/错误消息,如果您只使用了发生FlurryAnalytics-XXXjar 没有 FlurryAds-XXXjar 。如果你是在广告不感兴趣,你可以忽略该错误,因为它只是一个内部错误的SDK,并不会影响您的应用程序。

This warning/error message will happen if you are using just the FlurryAnalytics-X.X.X.jar without the FlurryAds-X.X.X.jar. If you are not interested in the ads, you can just ignore the error as it's just an internal error to the SDK and will not affect your app.

不过,如果你已经包含在广告库作为依赖,你仍然看到这个错误,这是因为Proguard的是剥离了所需的类。请确保您的Proguard的配置至少有以下内容:

However, if you have already included the ads library as a dependency and you are still seeing this error, it is because Proguard is stripping away the required classes. Make sure your Proguard config has at least the following:

-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.**

这篇关于乱舞集成了Android应用程序提供了一个错误&QUOT;找不到类的com.flurry.sdk.i“,从方法引用com.flurry.sdk.hu.a&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆