Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignored parameters in Android SDK v4

Since I switched to SDK v4 I notice this in LogCat :

W/GAV3﹕ Thread[main,5,main]: int configuration name not recognized: ga_dispatchPeriod W/GAV3﹕ Thread[main,5,main]: string configuration name not recognized: ga_appVersion

All the other parameters are good but those really seem to be ignored. Any ideas ?

Thanks.

like image 284
Guillaume Avatar asked Apr 11 '14 11:04

Guillaume


2 Answers

Apologies for confusing setup. Are you specifying the ga_dispatchPeriod and ga_appVersion values in the global configuration? If not, can you move them to the global configuration? This link specifies how to setup global configuration.

Note that global configuration is different from tracker configuration which is documented here.

If this does not fix your issue, can you paste the complete xml file? and how you are setting it up?

Thanks!

like image 50
Avi Avatar answered Oct 06 '22 23:10

Avi


WoW Why is this so over engineered? I use a single xml file for both app tracking specific configs AND global configs and I just add that meta tag in the manifest to point to that single xml file like so

<meta-data android:name="com.google.android.gms.analytics.globalConfigResource"
            android:resource="@xml/app_global_tracker"/>

And in my code i just do Tracker t = analytics.newTracker(R.xml.app_tracker); and thats all

like image 39
ThanosFisherman Avatar answered Oct 06 '22 23:10

ThanosFisherman