GoogleAnalytics.getInstance (this) não responde

Eu tenho um aplicativo para Android e adicionei o Google Analytics Tracker a ele e ele funciona (posso ver as visualizações no painel Analytics).

O problema é que em algum momento o aplicativo começa a carregar e, em seguida, fica preso e não responde mais. Eu tentei depurar e descobri que quando se trata da linha

  GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);

em algum momento não há resposta.

Por que isso acontece e como posso corrigi-lo?

EDITAR:

Adicionei analytics_global_config opcional e ainda acontece

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

analytics_global_config.xml

<?xml version="1.0" encoding="utf-8"?>
 <resources>
     <string name="ga_appName">HebConvertor</string>
     <string name="ga_appVersion">1.0</string>
     <string name="ga_logLevel">verbose</string>
     <integer name="ga_dispatchPeriod">1000</integer>
     <bool name="ga_dryRun">false</bool>
 </resources>

Minha aplicação:

import com.google.android.gms.analytics.GoogleAnalytics;
import com.google.android.gms.analytics.Tracker;
import android.app.Application;

public class MyApplication extends Application  {

      // The following line should be changed to include the correct property id.
      private static final String PROPERTY_ID = "XX-XXXXXXXX-X";

      public enum TrackerName {
        APP_TRACKER, // Tracker used only in this app.
        GLOBAL_TRACKER, // Tracker used by all the apps from a company. eg: roll-up tracking.
        ECOMMERCE_TRACKER, // Tracker used by all ecommerce transactions from a company.
      }

      HashMap<TrackerName, Tracker> mTrackers = new HashMap<TrackerName, Tracker>();

      public MyApplication() {    
        super();
      }

      synchronized Tracker getTracker(TrackerName trackerId) {
            if (!mTrackers.containsKey(trackerId)) {

              GoogleAnalytics analytics = GoogleAnalytics.getInstance(this);
              Tracker t = (trackerId == TrackerName.APP_TRACKER) ? analytics.newTracker(R.xml.app_tracker)
                      : (trackerId == TrackerName.GLOBAL_TRACKER) ? analytics.newTracker(PROPERTY_ID)
                      : analytics.newTracker(R.xml.app_tracker);
              mTrackers.put(trackerId, t);
            }
            return mTrackers.get(trackerId);
      }
}

app_tracker.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="TypographyDashes">
    <!-- tools:ignore="TypographyDashes" -->
    <!-- The apps Analytics Tracking Id -->
    <string name="ga_trackingId">XX-XXXXXXXX-X</string>

    <!-- Percentage of events to include in reports -->
    <string name="ga_sampleFrequency">100.0</string>

    <!-- Enable automatic Activity measurement -->
    <bool name="ga_autoActivityTracking">true</bool>

    <!-- catch and report uncaught exceptions from the app -->
    <bool name="ga_reportUncaughtExceptions">true</bool>

    <!-- How long a session exists before giving up -->
    <integer name="ga_sessionTimeout">-1</integer>

    <!-- If ga_autoActivityTracking is enabled, an alternate screen name can be specified to
    substitute for the full length canonical Activity name in screen view hit. In order to
    specify an alternate screen name use an <screenName> element, with the name attribute
    specifying the canonical name, and the value the alias to use instead. -->
    <screenName name="com.example.myapplication.MainActivity">MainActivity</screenName>

</resources>

Atividade principal:

    public class MainActivity extends ActionBarActivity {

        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);

            if (savedInstanceState == null) {
                getSupportFragmentManager().beginTransaction()
                        .add(R.id.container, new PlaceholderFragment()).commit();
            }
            getOverflowMenu();
        }

        @Override
        public void onStart() {
            super.onStart();
            //Get an Analytics tracker to report app starts & uncaught exceptions etc.
            GoogleAnalytics.getInstance(this).reportActivityStart(this);
        }

        @Override
        public void onStop() {
            super.onStop();
            //Stop the analytics tracking
            GoogleAnalytics.getInstance(this).reportActivityStop(this);
        }

        public static class PlaceholderFragment extends Fragment {

            public PlaceholderFragment() {
            }

            protected  InterstitialAd interstitial;

            @Override
            public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
               View rootView = inflater.inflate(R.layout.fragment_main, container, false);

               // Get tracker.
               Tracker t = ((MyApplication)getActivity().getApplication()).getTracker(TrackerName.APP_TRACKER);
               // Set screen name.
               t.setScreenName("MainActivity");

            ...
            }

        }
    }

questionAnswers(1)

yourAnswerToTheQuestion