title: Why Android Studio doesn't fully recognize GSON Library?
body: <p>Its weird because its working in the implementation, but the editor is highlighting in red the last word of the import (see attached image). And underlining the file as &quot;with errors&quot;.</p>
  <p><a href="https://i.stack.imgur.com/oS5Ks.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oS5Ks.png" alt="" /></a></p>
  <p>On my app gradle I have:</p>
  <pre><code>implementation fileTree(dir: 'libs', include: ['*.jar'])
  implementation 'com.google.code.gson:gson:2.8.6'
  </code></pre>
  <p>on the other gradle:</p>
  <pre><code>buildscript {
  ext.kotlin_version = &quot;1.5.10&quot;
  repositories {
      google()
      mavenCentral()
  }
  dependencies {
      classpath 'com.android.tools.build:gradle:4.2.1'
      classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
  }}
  allprojects {
  repositories {
      google()
      mavenCentral()
  }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir}
  </code></pre>
  <p>Also I have errors in the code but its running.
  <a href="https://i.stack.imgur.com/cYGcq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cYGcq.png" alt="" /></a></p>
  <p>Can anyone point me in the right direction?
  Thanks!</p>