gpt4 book ai didi

Android GoogleAnalytics 获取实例

转载 作者:IT老高 更新时间:2023-10-28 22:06:37 24 4
gpt4 key购买 nike

在 Application 类中,在创建方法中我调用 GoogleAnalytics.getInstance(this) 并且应用程序只是卡住...在任何设备上在 google play services 6.1 上运行良好,现在是 6.5,我不知道是什么原因造成的......有什么想法吗?

public class BaseApplication extends Application {

private static Tracker mTracker;
private MyProfile mMyProfile;

public BaseApplication() {
super();
}

private void initTracker() {
if (mTracker == null) {
GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
mTracker = analytics.newTracker(R.xml.global_tracker);
mTracker.enableAdvertisingIdCollection(true);
}
}

`...

Gradle 
dependencies {
compile project(':IMFramework')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.google.android.gms:play-services-base:6.5.87'
compile 'com.google.android.gms:play-services-maps:6.5.87'
}

最佳答案

Worked fine with google play services 6.1

很好,我确实回滚到 6.1。+我认为这是一些内部错误,将在下一次更新中修复。

更新

在 7.0 中已修复

关于Android GoogleAnalytics 获取实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27423218/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com