title: Gradle build fails looking for Google Play Services in Android Studio - is my SDK correct?
body: <p>I have a question very similar to <a href="https://stackoverflow.com/questions/20198502/gradle-build-fails-looking-for-google-play-services-in-android-studio">Gradle build fails looking for Google Play Services in Android Studio</a> </p>
  
  <p>I have a working android project but when I add </p>
  
  <pre><code>compile 'com.google.android.gms:play-services:5.0.77'
  </code></pre>
  
  <p>I get a gradle build error </p>
  
  <pre><code>Error:Failed to find: com.google.android.gms:play-services:5.2.8
  &lt;a href="openFile"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="open.dependency.in.project.structure"&gt;Open in Project Structure dialog&lt;/a&gt;
  </code></pre>
  
  <p>I have added the SDKs through the manager. Other threads have suggested that there might be a second SDK library on the computer causing the issue, but I have not been able to resolve this. I am using a mac (and normally a PC user so please bear with me) and looking at the SDK manager and the project structure dialog both say the SDK is located at:</p>
  
  <pre><code>/Applications/Android Studio.app/sdk
  </code></pre>
  
  <p>Given they are pointing to the same place it must be some other cause of the error?</p>
  
  <p>Maybe I have a version other than 5.2.8 (although unlikely, as andoid studio says this is the most up to date and I have just updated the SDK)? How can I check the version installed on my machine - its not in the file names?</p>