在Application类中,在create方法中我调用GoogleAnalytics.getInstance(this),应用程序只是冻结...在任何设备上使用google play服务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);
}
}
Run Code Online (Sandbox Code Playgroud)
`...
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'
}
Run Code Online (Sandbox Code Playgroud)