title: Firebase messaging and Google Play service anylatics duplicate analytic
body: <p>I tried to add Firebase messaging to use push notification and Google Play service analytics to tracking my app with google analytics. When I syns now build it is ok but when I run app it show error</p>
  
  <pre><code>Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.&gt;com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/analytics/internal/Command$1.class
  </code></pre>
  
  <p>I try to add Myapplication.class with </p>
  
  <pre><code>@Override
  protected void attachBaseContext(Context base) {
      super.attachBaseContext(base);
      MultiDex.install(this);
  }
  </code></pre>
  
  <p>and add multiDexEnabled true in build, But it not work
  Here is my build.gradle</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 23
      buildToolsVersion "23.0.2"
  
      defaultConfig {
          applicationId "hoatv.videotrailer"
          minSdkVersion 15
          targetSdkVersion 23
          versionCode 1
          versionName "1.0"
          multiDexEnabled true
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      packagingOptions {
          exclude 'META-INF/LICENSE'
          exclude 'META-INF/LICENSE-FIREBASE.txt'
          exclude 'META-INF/NOTICE'
      }
  }
  
  dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      testCompile 'junit:junit:4.12'
      compile 'com.android.support:appcompat-v7:23.2.1'
      compile 'com.android.support:design:23.2.1'
      provided 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
      compile 'com.squareup.picasso:picasso:2.3.2'
      compile 'com.jpardogo.materialtabstrip:library:1.1.0'
      compile files('libs/valuepotion.jar')
      compile files('libs/universal-image-loader-1.9.3.jar')
      compile 'com.github.Commit451.YouTubeExtractor:youtubeextractor:2.1.0'
      compile 'org.lucasr.twowayview:twowayview:0.1.4'
      compile 'com.google.firebase:firebase-messaging:9.0.0'
      compile 'com.google.android.gms:play-services-ads:9.0.0'
      compile 'com.google.android.gms:play-services-analytics:9.0.0'
  }
  apply plugin: 'com.google.gms.google-services'</code></pre>
  </div>
  </div>
  </p>
  
  <p>How can I fix it? please help me! thanks alot!</p>