title: Unable to load class 'org.gradle.internal.impldep.com.google.common.collect.Lists'
body: <p>I have imported project in my Android Studio and I encounter this error,</p>
  <ul>
  <li>Caused by: java.lang.NoClassDefFoundError:
  org/gradle/internal/impldep/com/google/common/collect/Lists</li>
  <li>Caused by: java.lang.ClassNotFoundException:
  org.gradle.internal.impldep.com.google.common.collect.Lists</li>
  </ul>
  <p>this is my <code>dependencies</code></p>
  <pre><code>dependencies {
      implementation fileTree(dir: &quot;libs&quot;, include: [&quot;*.jar&quot;])
      //noinspection GradleDynamicVersion
      implementation 'com.facebook.react:react-native:0.20.1'  // From node_modules
  
  implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  
  implementation(&quot;com.google.guava:guava:30.1-jre&quot;)
  
  debugImplementation(&quot;com.facebook.flipper:flipper:${FLIPPER_VERSION}&quot;) {
    exclude group:'com.facebook.fbjni'
  }
  
  debugImplementation(&quot;com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}&quot;) {
      exclude group:'com.facebook.flipper'
  }
  
  debugImplementation(&quot;com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}&quot;) {
      exclude group:'com.facebook.flipper'
  }
  
  if (enableHermes) {
      def hermesPath = &quot;../../node_modules/hermes-engine/android/&quot;;
      debugImplementation files(hermesPath + &quot;hermes-debug.aar&quot;)
      releaseImplementation files(hermesPath + &quot;hermes-release.aar&quot;)
  } else {
      implementation jscFlavor
  }
  
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/utuES.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/utuES.png" alt="enter image description here" /></a></p>
  <p>I already saw this question <a href="https://stackoverflow.com/questions/38007629/no-class-found-com-google-common-collect-lists">No Class Found: com.google.common.collect.Lists</a> but when i tried to add the <a href="https://github.com/google/guava" rel="nofollow noreferrer">https://github.com/google/guava</a> the error still exist</p>
  <pre><code>buildscript {
      ext {
          buildToolsVersion = &quot;28.0.3&quot;
          minSdkVersion = 16
          compileSdkVersion = 28
          targetSdkVersion = 28
      }
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath(&quot;com.android.tools.build:gradle:3.5.2&quot;)
          compile &quot;com.google.guava:guava:16+&quot;
          compile  &quot;junit:junit:4.10&quot;
      }
  }
  
  allprojects {
      repositories {
  
          mavenLocal()
          maven {
              // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
              url(&quot;$rootDir/../node_modules/react-native/android&quot;)
          }
          maven {
              // Android JSC is installed from npm
              url(&quot;$rootDir/../node_modules/jsc-android/dist&quot;)
          }
  
          google()
          jcenter()
          maven { url 'https://www.jitpack.io' }
      }
  }
  </code></pre>