title: Failed to resolve: com.google.code.gson:gson:2.3.1
body: <p>Error:(25, 13) Failed to resolve: com.google.code.gson:gson:2.3.1</p>
  
  <p>Show in Project Structure dialog</p>
  
  <p>build.gradle:app</p>
  
  <hr>
  
  <pre><code>apply plugin:'com.android.application'
  
    android {
  
     compileSdkVersion 23
      buildToolsVersion "23.0.0 rc2"
  
    defaultConfig {
      applicationId "com.app.main"
      minSdkVersion 14
      targetSdkVersion 23
      versionCode 1
      versionName "1.0"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), proguard-rules.pro'
      }
  }}
  
  repositories {
      mavenCentral()
  }
  dependencies {
  compile fileTree(include: ['*.jar'], dir: 'libs')
  compile 'com.google.code.gson:gson:2.3.1'
  compile 'com.android.support:support-v4:23.0.1'
  compile 'com.google.android.gms:play-services:7.8.0'
  compile 'com.facebook.android:facebook-android-sdk:4.5.0'
  compile 'com.google.android.gms:play-services-base:7.8.0'
  compile 'com.google.android.gms:play-services-gcm:7.8.0'
  compile 'com.google.android.gms:play-services-maps:7.8.0'
  compile 'com.google.android.gms:play-services-location:7.8.0'
  compile project(':Uni_Image_Lod_Lib')   }
  </code></pre>
  
  <p>builde.gradle:Project</p>
  
  <hr>
  
  <pre><code>  // Top-level build file where you can add configuration options common to  all  sub-projects/modules.
  
   buildscript {
       repositories {
          jcenter()
   }
  dependencies {
      classpath 'com.android.tools.build:gradle:1.3.0'
  
      // NOTE: Do not place your application dependencies here; they belong
      // in the individual module build.gradle files
  }}
    allprojects {
       repositories {
          jcenter()
        }
    }
  </code></pre>
  
  <hr>
  
  <p>step follows:</p>
  
  <p>Android Studio Version 1.3.2</p>
  
  <p>Restart computer </p>
  
  <p>Invalidate caches/Restart</p>
  
  <p>up dawn dependency.</p>
  
  <p>but nothing to change. now what will be the solution for this.</p>
  
  <p><strong>After Some Changes</strong></p>
  
  <pre><code>apply plugin:'com.android.application'
  
    android {
  
     compileSdkVersion 23
      buildToolsVersion "23.0.1"
  
    defaultConfig {
      applicationId "com.app.main"
      minSdkVersion 14
      targetSdkVersion 23
      versionCode 1
      versionName "1.0"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), proguard-rules.pro'
      }
  }}
  
  repositories {
      mavenCentral()
  }
  dependencies {
  compile fileTree(include: ['*.jar'], dir: 'libs')
  compile 'com.google.code.gson:gson:2.3.1'
  compile 'com.android.support:support-v4:23.0.1'
  compile 'com.google.android.gms:play-services:7.8.0'
  compile 'com.facebook.android:facebook-android-sdk:4.5.0'
  compile project(':Uni_Image_Lod_Lib')   }
  </code></pre>
  
  <p>and get error rebuild  </p>
  
  <p>Unresolved dependencies detected while building project in offline mode. Please disable offline mode and try again. </p>
  
  <p>Error:A problem occurred configuring project ':app'.</p>
  
  <blockquote>
    <p>Could not resolve all dependencies for configuration ':app:_debugCompile'.
    Could not resolve com.google.code.gson:gson:2.3.1.
         Required by:
             APP:app:unspecified
    No cached version of com.google.code.gson:gson:2.3.1 available for offline mode.
    No cached version of com.google.code.gson:gson:2.3.1 available for offline mode.</p>
  </blockquote>
  
  <p>then i have see in prefrences-> Build, Execution, deployment -> gradle.</p>
  
  <p>project level setting is:</p>
  
  <p><em>ticked use local gradle distribution</em></p>
  
  <p>global gradle setting:</p>
  
  <p><em>offline work is not ticked</em></p>