Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Errors when initializing flurry for android

I’m using FlurryAnalytics-5.5.0.jar. When I initialize Flurry, I receive some errors:

FlurryAgent.setLogEnabled(true);
FlurryAgent.setLogEvents(true);
FlurryAgent.setLogLevel(android.util.Log.ERROR);
FlurryAgent.init(this, FLURRY_ID);

Errors:

Could not find class 'com.flurry.sdk.br', referenced from method com.flurry.sdk.bq.a

and

There is a problem with the Google Play Services library, which is required for Android Advertising ID support. The Google Play Services library should be integrated in any app shipping in the Play Store that uses analytics or advertising.

Can you please advise?

like image 335
iftach barshem Avatar asked Oct 29 '25 09:10

iftach barshem


1 Answers

This problem arises because Google Play Services are not property configured. Check that any play-services core dependency is not missing in your project configuration.

In my case, I solved it by adding the following dependency to build.gradle config file (app level):

compile 'com.google.android.gms:play-services-base:8.4.0'

The exact logcat error lines are the following

E/FlurryAgent: GOOGLE PLAY SERVICES EXCEPTION: com.google.android.gms.common.GooglePlayServicesUtil

E/FlurryAgent: There is a problem with the Google Play Services library, which is required for Android Advertising ID support. The Google Play Services library should be integrated in any app shipping in the Play Store that uses analytics or advertising.

and the GooglePlaySercicesUtil class is found in the play-services-base library.

Hope this helps.

See links this and this for more information.

like image 167
txedo Avatar answered Oct 31 '25 01:10

txedo