在应用程序类,在创建方法我称之为GoogleAnalytics.getInstance(本)和应用程序只是冻结......在任何设备上 正常工作与谷歌播放服务6.1,现在是6.5,我不知道这是什么原因.... 任何想法?
公共类BaseApplication扩展应用{
私有静态跟踪mTracker;
私人我的资料mMyProfile;
公共BaseApplication(){
超();
}
私人无效initTracker(){
如果(mTracker == NULL){
GoogleAnalytics分析= GoogleAnalytics.getInstance(本);
mTracker = analytics.newTracker(R.xml.global_tracker);
mTracker.enableAdvertisingIdCollection(真正的);
}
}
`...
摇篮
依赖{
编制项目(:IMFramework)
编译com.android.support:appcompat-v7:21.0.3
编译com.google.android.gms:播放服务基地:87年6月5日
编译com.google.android.gms:播放服务,地图:87年6月5日
}
解决方案
运行良好与谷歌播放服务6.1
好,我没有回滚到6.1。+ 我认为它的一些内部错误将被固定在未来的更新。
UPD
它固定在7.0
in Application class, in create method I call GoogleAnalytics.getInstance(this) and application just freezes...on any device Worked fine with google play services 6.1, now it's 6.5 and I have no idea what could cause this.... Any ideas?
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
Good, I did rollback to 6.1.+ I think it some internal error that will be fixed in an next update.
Upd
It fixed in 7.0