title: How to add library google play service in android studio successfully
body: <p>I try to add library <code>google play service</code> to project via <code>Maven</code> in android studio, but it get many issues.</p>
  
  <p><strong>First Issue</strong> is <code>Multiple dex files define</code> :</p>
  
  <pre><code>repositories {
      mavenCentral()
  }
  dependencies {
      compile fileTree(dir: 'libs', include: '*.jar')
      compile 'com.google.android.gms:play-services:+'
  }
  </code></pre>
  
  <p>I researched, changed to like this:</p>
  
  <pre><code>    repositories {
  
          mavenCentral()
  }
  
      dependencies {
  
          compile fileTree(dir: 'libs', include: '*.jar')
         // compile 'com.google.android.gms:play-services:+'
  
          compile 'com.google.android.gms:play-services:4.3.23'{
           exclude module: 'support-v4'
  }
  
         compile 'com.android.support:support-v4:18.0.+'
  
      }
  </code></pre>
  
  <p>But I get other error <code>Build script error, unsupported Gradle DSL method found: 'com.google.android.gms:play-services:4.3.23()'!</code></p>
  
  <p>I don't why I got this bug. </p>
  
  <p>People can tell me how to add library <code>google play service</code> to project via <code>Maven</code> successfully?</p>
  
  <p>Thanks,</p>