title: Failed to resolve: com.google.android.gms:play-services in IntelliJ Idea with gradle
body: <p>I'm trying to add google play services to my libGDX project in IntelliJ Idea. I've followed the setup guide here: <a href="https://developers.google.com/android/guides/setup" rel="noreferrer">https://developers.google.com/android/guides/setup</a></p>
  
  <p>which looks pretty straightforward. I just added those lines to my build.gradle in the corresponding section, so things look now like:</p>
  
  <pre><code>project(":android") {
      apply plugin: "android"
      apply plugin: 'com.android.application'
  
      configurations { natives }
  
      dependencies {
          compile project(":core")
          compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
          natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
          compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion"
          natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi"
          natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a"
          natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86"
          compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
          natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi"
          natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a"
          natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-arm64-v8a"
          natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86"
          natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86_64"
          compile 'com.google.android.gms:play-services:11.2.0'
      }
  }
  </code></pre>
  
  <p>Then I try to sync my gradle project in Idea just to get that "Failed to resolve" error.</p>
  
  <p>Well, the setup guide also says "Be sure you update this version number each time Google Play services is updated", but the problem is that it seems nearly impossible to find that version number: my Google Play Services SDK version according to the Android SDK manager is "43", and so far I have been unable to correlate such "11.2.0" or whatever typical version string with the "43" version number. Not that the setup guide says nothing about that.</p>
  
  <p>Anyway, I have tried a lot of things from the plethora of questions related to this to no avail. Specifically, I have to point out that I do have my Android SDK properly updated and I'm sure it is the one it's being used by Idea (I've already triple-checked this...):</p>
  
  <p><a href="https://i.stack.imgur.com/gIYz7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gIYz7.png" alt="Android SDK Manager"></a>
  <a href="https://i.stack.imgur.com/bSxSl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bSxSl.png" alt="Project Structure"></a></p>
  
  <p>I'm using the API level 26, but anyway the other defines do use the very same directory for the Android SDK. Moreover, I do NOT have any other android SDK installed at all in this laptop, so there's no question about Idea being using that one and that one only. </p>
  
  <p>Any ideas are more than welcome.</p>
  
  <p>Thanks in advance!</p>