title: Adding gms google service to android app
body: <p>I first try under module build gradle as following.</p>
  
  <pre><code>dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
          exclude group: 'com.android.support', module: 'support-annotations'
      })
      compile 'com.android.support:appcompat-v7:24.2.1'
      compile 'com.android.support:design:24.2.1'
      compile 'com.android.support:support-v4:24.2.1'
      compile 'com.google.android.gms:play-services:10.0.1'
      testCompile 'junit:junit:4.12'
  }
  </code></pre>
  
  <p>I notice each time the gradle sync will take too long to load almost 20 minutes. Then after googling I found some solution to do this in build.gradle for the project itself it can now sync all is fine but all my google map related codes are showing red. But I have remove compile 'com.google.android.gms:play-services:10.0.1'</p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.2.3'
          classpath 'com.google.gms:google-services:3.0.0'
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  </code></pre>
  
  <p>For example its showing this </p>
  
  <pre><code>SupportMapFragment mapFragment = (SupportMapFragment) getChildFragmentManager()
               .findFragmentById(R.id.map);
          mapFragment.getMapAsync(this);
  </code></pre>
  
  <p>cannot resolve symbol etc. </p>
  
  <p>Even this it say cannot resolve symbol android?</p>
  
  <pre><code>import com.google.android.gms.maps.CameraUpdateFactory;
  import com.google.android.gms.maps.GoogleMap;
  import com.google.android.gms.maps.OnMapReadyCallback;
  import com.google.android.gms.maps.SupportMapFragment;
  import com.google.android.gms.maps.model.LatLng;
  import com.google.android.gms.maps.model.MarkerOptions;
  </code></pre>