title: gradle android studio 2.3: failed to resolve 'com.google.code.gson:gson:2.8.0'
body: <p>i'm facing the gradle error failed to resolve while including gson libraries.</p>
  
  <p>I already checked for similar problem <a href="https://stackoverflow.com/questions/32581327/failed-to-resolve-com-google-code-gsongson2-3-1">here</a>, <a href="https://stackoverflow.com/questions/32439041/failed-to-resolve-com-google-code-gsongson-2-2-2">here</a> and <a href="https://stackoverflow.com/questions/32867144/android-studio-gradle-not-recognise-com-google-code-gsongson2-3-1">here</a> but none of the solution proposed was suitable to me, i continue receiving the same error.</p>
  
  <p>My build.gradle module:</p>
  
  <pre><code>android {
      compileSdkVersion 24
      buildToolsVersion '25.0.0'
  }
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      compile 'com.google.code.gson:gson:2.8.0'
  }
  </code></pre>
  
  <p>build.gradle project</p>
  
  <pre><code>buildscript {
  repositories {
      mavenCentral()
      jcenter()
  }
  allprojects {
  repositories {
      mavenCentral()
      jcenter()
  }
  </code></pre>
  
  <p>As suggested in the answers it should be enough jcenter repository, as it is a superset of mavenCentral, i tried also different versions of gson, adding "+" et cetera but nothing is working.</p>
  
  <p>Thanks in advance guys :)</p>