简体   繁体   English

Android SDK v4中忽略的参数

[英]Ignored parameters in Android SDK v4

Since I switched to SDK v4 I notice this in LogCat : 自从我切换到SDK v4后,我在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 W / GAV3:线程[main,5,main]:int配置名称无法识别:ga_dispatchPeriod W / GAV3:Thread [main,5,main]:字符串配置名称无法识别:ga_appVersion

All the other parameters are good but those really seem to be ignored. 所有其他参数都很好,但那些似乎真的被忽略了。 Any ideas ? 有任何想法吗 ?

Thanks. 谢谢。

Apologies for confusing setup. 抱歉设置混乱。 Are you specifying the ga_dispatchPeriod and ga_appVersion values in the global configuration? 您是在全局配置中指定ga_dispatchPeriodga_appVersion值吗? 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? 如果这不能解决您的问题,您可以粘贴完整的xml文件吗? and how you are setting it up? 以及你如何设置它?

Thanks! 谢谢!

WoW Why is this so over engineered? WoW为什么这么过度设计? 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 我使用单个xml文件进行应用程序跟踪特定配置和全局配置,我只是在清单中添加该元标记以指向单个xml文件,如此

<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); 在我的代码中我只做Tracker t = analytics.newTracker(R.xml.app_tracker); and thats all 就这样

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM