title: Android Studio: Unable to load class 'com.google.common.base.Preconditions', Gradle Sync Failed
body: <p>When i try opening my projects on Android Studio 3.1.2, I get this Gradle Project Sync failed error with the message below</p>
  
  <blockquote>
    <p>Unable to load class 'com.google.common.base.Preconditions'. Possible
    causes for this unexpected error include:<ul><li>Gradle's dependency
    cache may be corrupt (this sometimes occurs after a network connection
    timeout.) Re-download dependencies and sync project (requires
    network)</li><li>The state of a Gradle build process (daemon) may be
    corrupt. Stopping all Gradle daemons may solve this problem. Stop
    Gradle build processes (requires restart)</li><li>Your project may be
    using a third-party plugin which is not compatible with the other
    plugins in the project or the version of Gradle requested by the
    project.</li></ul>In the case of corrupt Gradle processes, you can
    also try closing the IDE and then killing all Java processes.</p>
  </blockquote>
  
  <h1>gradle-wrapper.properties file</h1>
  
  <pre><code>distributionBase=GRADLE_USER_HOME
  distributionPath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  zipStorePath=wrapper/dists
  distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
  </code></pre>
  
  <h1>build.gradle file</h1>
  
  <pre><code>buildscript {
      ext.kotlin_version = '1.2.41'
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.1.2'
          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  apply plugin: 'kotlin'
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  repositories {
      mavenCentral()
  }
  dependencies {
      compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
  }
  compileKotlin {
      kotlinOptions {
          jvmTarget = "1.8"
      }
  }
  compileTestKotlin {
      kotlinOptions {
          jvmTarget = "1.8"
      }
  }
  </code></pre>