In Android Studio, there is two adle files. } Method 3: Move dependencies to module adle Inside the dependencies block change “ implementation” to “ compile“, “ testImplementation” to “ testCompile” and “ androidTestImplementation” to “ androidTestCompile“.Ĭompile fileTree(dir: "libs", include: )Ĭompile 'androidx.appcompat:appcompat:1.3.0'Ĭompile 'nstraintlayout:constraintlayout:2.0.4'Ĭompile ':firebase-database:20.0.0'Ĭompile ':firebase-analytics'Ĭompile platform(':firebase-bom:28.0.1')Ĭompile ':material:1.3.0'Ĭompile ':flexbox:2.0.1'Ĭompile 'androidx.cardview:cardview:1.0.0'Ĭompile ':firebase-storage:20.0.0'ĪndroidTestCompile ':junit:1.1.2'ĪndroidTestCompile ':espresso-core:3.3.0' Navigate to app > Gradle Script > adle (Module:app). Hence changing “implementation” to “compile” would work. If you are using the “implementation” configuration in a Gradle Plugin version less than 3.0, the Gradle will not recognize it and will throw this error. Method 2: Change “implementation” to “compile” distributionUrl=https\:///distributions/gradle-6.1.1-all.zip
After adding this code sync your project to solve this issue.
Step 2: Now navigate to app > Gradle Script > gradle-wrapper.properties and update the “ distributionUrl” to the latest version of Gradle. Hence updating Gradle and Gradle build plugin to the latest version can help solve this issue. In case you are using the “implementation” configuration in an older version of Gradle, the Gradle will not recognize it and throw this error.
How to Add a Floating Action Button to Bottom Navigation Bar in Android?.External Storage in Android with Example.Best Way to Become Android Developer – A Complete Roadmap.Firebase Authentication with Phone Number OTP in Android.How to Upload Project on GitHub from Android Studio?.
Android Projects - From Basic to Advanced Level.MVVM (Model View ViewModel) Architecture Pattern in Android.How to Change the Background Color of Button in Android using ColorStateList?.ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.* Be careful when update dependencies, different version library may caused error */Ĭompile fileTree(dir: 'libs', include: )Ĭompile ':appcompat-v7:24.1.1'Ĭompile ':cardview-v7:24.1.1'Ĭompile ':recyclerview-v7:24.1.1'Ĭompile ':design:24.1.1'Ĭompile ':support-v4:24.1.1'Ĭompile ':play-services-ads:9.2.1'Ĭompile ':play-services-analytics:9.2.1'Ĭompile ':firebase-messaging:9.2.1'Ĭompile('2:retrofit:2.0.
ProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'Īnd dependencies and its version that is like below: Gradle sync failed: ':firebase-iid-9.2.1' already disposed: (2s 556ms) It is failed and showing following error in console output. Gradle sync failed: ':firebase-iid-9.2.1' already disposed: (2s 556ms) - android Getting error on Gradle sync