title: Android Studio 3.6.1 with Gradle Plugin Version 3.6.1 and Gradle Version 5.6.4 not working
body: <p>My application is working very well. I have just updated <strong>Android Studio 3.6.1</strong>,</p>
  <p>After updating Android Studio I got this dialog and I am going to update the version of the Gradle Plugin as below.</p>
  <p><a href="https://i.stack.imgur.com/nOpxB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nOpxB.png" alt="enter image description here" /></a></p>
  <p>After updating, My application getting crashed and getting the following errors.</p>
  <pre><code>java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/R$string;
          at com.google.android.gms.common.internal.StringResourceValueReader.&lt;init&gt;(Unknown Source:4)
          at com.google.firebase.FirebaseOptions.fromResource(com.google.firebase:firebase-common@@19.3.0:156)
          at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:244)
          at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common@@19.3.0:51)
          at android.content.ContentProvider.attachInfo(ContentProvider.java:1940)
          at android.content.ContentProvider.attachInfo(ContentProvider.java:1915)
          at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common@@19.3.0:45)
          at android.app.ActivityThread.installProvider(ActivityThread.java:6770)
          at android.app.ActivityThread.installContentProviders(ActivityThread.java:6317)
          at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6232)
          at android.app.ActivityThread.access$1200(ActivityThread.java:237)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1792)
          at android.os.Handler.dispatchMessage(Handler.java:106)
          at android.os.Looper.loop(Looper.java:214)
          at android.app.ActivityThread.main(ActivityThread.java:7078)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)
  </code></pre>
  <p>My Project Level <strong>build.gradle</strong> is:</p>
  <pre><code>buildscript {
      ext.objectboxVersion = '2.5.0'
      repositories {
          google()
          jcenter()
          maven {
              url 'https://maven.fabric.io/public'
          }
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.6.1'
          classpath 'com.google.gms:google-services:4.3.3'
  
          classpath &quot;androidx.navigation:navigation-safe-args-gradle-plugin:2.2.1&quot;
          classpath &quot;io.objectbox:objectbox-gradle-plugin:$objectboxVersion&quot;
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
  
          // Add dependency
          classpath 'io.fabric.tools:gradle:1.31.0'
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
          maven { url &quot;https://jitpack.io&quot; }
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  <p>and My App Level <strong>build.gradle</strong> is:</p>
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'io.fabric'
  apply plugin: &quot;androidx.navigation.safeargs&quot;
  
  android {
      compileSdkVersion 29
      buildToolsVersion &quot;29.0.2&quot;
      defaultConfig {
          applicationId &quot;com.sohamerp.marsremedies&quot;
          minSdkVersion 19
          targetSdkVersion 29
          versionCode 1
          versionName &quot;1.0&quot;
          testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
          vectorDrawables.useSupportLibrary = true
          multiDexEnabled true
      }
      dataBinding {
          enabled true
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
      compileOptions {
          sourceCompatibility = 1.8
          targetCompatibility = 1.8
      }
  }
  
  dependencies {
      //implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'androidx.legacy:legacy-support-v4:1.0.0'
      implementation 'androidx.navigation:navigation-fragment:2.2.1'
      implementation 'androidx.navigation:navigation-ui:2.2.1'
  
      implementation 'androidx.multidex:multidex:2.0.1'
  
      implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
      testImplementation 'junit:junit:4.13'
      androidTestImplementation 'androidx.test.ext:junit:1.1.1'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  
      implementation 'androidx.appcompat:appcompat:1.1.0'
      implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
      implementation 'com.google.android.material:material:1.2.0-alpha05'
  
      implementation 'com.github.mukeshsolanki:android-otpview-pinview:2.1.0'
  
      implementation 'com.squareup.retrofit2:retrofit:2.7.1'
      implementation 'com.squareup.retrofit2:converter-gson:2.7.1'
      implementation 'com.squareup.okhttp3:logging-interceptor:4.4.0'
  
      implementation 'com.google.android.gms:play-services-location:17.0.0'
      implementation 'com.google.firebase:firebase-core:17.2.2'
      implementation 'com.google.firebase:firebase-auth:19.2.0'
      implementation 'com.google.firebase:firebase-messaging:20.1.0'
      implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
  
      implementation 'com.github.bumptech.glide:glide:4.11.0'
      annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
      annotationProcessor 'androidx.annotation:annotation:1.1.0'
  
      implementation &quot;com.github.firdausmaulan:GlideSlider:1.5.1&quot;
  
      implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
  
      implementation 'org.greenrobot:eventbus:3.1.1'
  
      debugImplementation &quot;io.objectbox:objectbox-android-objectbrowser:$objectboxVersion&quot;
      releaseImplementation &quot;io.objectbox:objectbox-android:$objectboxVersion&quot;
  
      implementation 'com.intuit.sdp:sdp-android:1.0.6'
  }
  // apply the plugin after the dependencies block
  
  apply plugin: 'com.google.gms.google-services'
  apply plugin: 'io.objectbox'
  </code></pre>
  <blockquote>
  <p>There is only one solution which I have tried is reverting back the version of Gradle
  which I have updated but what if I want to use the latest versions.</p>
  </blockquote>
  <h2>Update:</h2>
  <blockquote>
  <p>One of my projects is working with some version of <strong>Android Studio
  and Gradle.</strong> Here is Firebase SDK is different in both project so I
  am thinking that Firebase is Project.</p>
  </blockquote>
  <p>Any help? What should I do?</p>