title: Small problem on Android Studio of: Cannot resolve android.support.constraint.ConstraintLayout
body: <p>I am having problems of: Cannot resolve android.support.constraint.ConstraintLayout</p>
  <p>I added the dependency on androidx.constraintlayout:constraintlayout</p>
  <p>You can check that all files have been added to ensure this issue is resolved.
  The problem is, the problem remains.</p>
  <p><img src="https://i.stack.imgur.com/s792d.png" alt="enter image description here" /></p>
  <p><img src="https://i.stack.imgur.com/drOs5.png" alt="enter image description here" /></p>
  <p><img src="https://i.stack.imgur.com/CN9Ur.png" alt="enter image description here" /></p>
  <p>First gradle.build:</p>
  <pre><code>buildscript {
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath &quot;com.android.tools.build:gradle:4.1.3&quot;
          classpath 'com.google.gms:google-services:3.0.0'
          classpath &quot;com.android.support.constraint:constraint-layout:1.0.2&quot;
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  </code></pre>
  <p>Second gradle.build:</p>
  <pre><code>```dependencies {
      implementation &quot;androidx.constraintlayout:constraintlayout:2.0.4&quot;
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:28.0.0'
      implementation 'com.android.support.constraint:constraint-layout:1.1.3'
      implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
      implementation 'com.google.firebase:firebase-auth:21.0.1'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
      //firebase auth
      implementation 'com.google.firebase:firebase-core:16.0.5'
      //firebase database
      implementation 'com.google.firebase:firebase-database:16.0.4'
      implementation &quot;androidx.constraintlayout:constraintlayout:2.0.4&quot;
      // To use constraintlayout in compose
      implementation &quot;androidx.constraintlayout:constraintlayout-compose:1.0.0-alpha07&quot;
  }
  apply plugin: 'com.google.gms.google-services'```
  </code></pre>