Flurry integrations with Android App gives an error “Could not find class 'com.flurry.sdk.i', referenced from method com.flurry.sdk.hu.a”

后端 未结 1 921
旧巷少年郎
旧巷少年郎 2021-02-08 12:09

This is what I\'ve tried so far:

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


        
相关标签:
1条回答
  • 2021-02-08 12:43

    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.

    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.**
    
    0 讨论(0)
提交回复
热议问题