Flurry does not integrate into Android app

I just wanted to analyze how the flurry integration works, so I created a simple Hello World app in Android Studio. But somehow nothing shows up in my control panel and even in the events section. The following permissions are used in the manifest file:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

      

I have included FlurryAnalytics-4.1.0.jar in lib folder.

The onStart () and onStop () methods in the Activity class look something like this:

@Override
protected void onStart() {
    super.onStart();
    FlurryAgent.onStartSession(this, "API_KEY");
    FlurryAgent.setLogEnabled(true);
    FlurryAgent.setLogEvents(true);
    FlurryAgent.setLogLevel(Log.VERBOSE);
    FlurryAgent.logEvent("Article_Read");
}

@Override
protected void onStop() {
    super.onStop();
    FlurryAgent.onEndSession(this);
}

      

However, the logcat file shows some error:

W/System.err﹕ java.lang.VerifyError: com/flurry/sdk/dw
W/System.err﹕ at com.flurry.sdk.dj$1.a(SourceFile:247)
W/System.err﹕ at com.flurry.sdk.ff.run(SourceFile:49)
W/System.err﹕ at android.os.Handler.handleCallback(Handler.java:733)
W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:95)
W/System.err﹕ at android.os.Looper.loop(Looper.java:136)
W/System.err﹕ at android.os.HandlerThread.run(HandlerThread.java:61)

      

+3


source to share


3 answers


I recently integrated Flurry Analytics and I am getting the same alerts. These warnings do not seem to have an impact on reports returning to Flurry. I suggest checking your dashboard reports to see if they go back there. I suspect these warnings are related to the advertising side of Flurry, which is not used, but only to the Analytics site.



+2


source


I also tried to integrate Flurry 4.1.0 and it doesn't seem to work for me. However, back to 3.3.2.



+1


source


Check your internet connection, if there is no internet connection this exception will be thrown by flurry sdk:

09-11 10:37:21.570: W/dalvikvm(11122): VFY: unable to resolve static method 11523: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;.getAdvertisingIdInfo (Landroid/content/Context;)Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
09-11 10:37:21.570: D/dalvikvm(11122): VFY: replacing opcode 0x71 at 0x000a
09-11 10:37:21.575: W/FlurryAgent(11122): Start session with context: com.fexcon.warnersbay.HomeActivity@4270cc58 count:0
09-11 10:37:21.575: W/dalvikvm(11122): VFY: unable to resolve exception class 1470 (Lcom/google/android/gms/common/GooglePlayServicesRepairableException;)
09-11 10:37:21.575: W/dalvikvm(11122): VFY: unable to find exception handler at addr 0x43
09-11 10:37:21.580: W/dalvikvm(11122): VFY:  rejected Lcom/flurry/sdk/dw;.c ()Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
09-11 10:37:21.580: W/dalvikvm(11122): VFY:  rejecting opcode 0x0d at 0x0043
09-11 10:37:21.580: W/dalvikvm(11122): VFY:  rejected Lcom/flurry/sdk/dw;.c ()Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
09-11 10:37:21.580: W/dalvikvm(11122): Verifier rejected class Lcom/flurry/sdk/dw;
09-11 10:37:21.585: W/System.err(11122): java.lang.VerifyError: com/flurry/sdk/dw
09-11 10:37:21.600: W/System.err(11122):    at com.flurry.sdk.dj$1.a(SourceFile:247)
09-11 10:37:21.605: W/System.err(11122):    at com.flurry.sdk.ff.run(SourceFile:49)
09-11 10:37:21.615: W/System.err(11122):    at android.os.Handler.handleCallback(Handler.java:730)
09-11 10:37:21.615: W/System.err(11122):    at android.os.Handler.dispatchMessage(Handler.java:92)
09-11 10:37:21.615: W/System.err(11122):    at android.os.Looper.loop(Looper.java:137)
09-11 10:37:21.615: W/System.err(11122):    at android.os.HandlerThread.run(HandlerThread.java:61)

      

0


source







All Articles