Sarwar Sateer
Sarwar Sateer

Reputation: 465

Your project may be using a third-party plugin which is not compatible with the other plugins in the project

The problem might be similar or looks duplicated but it doesn't. I Tried every possible solution on Stackoverflow and YouTube but I couldn't solve the issue with my project. I have already released the app to Google Play Store as well. but Now facing this problem.

Error:

Your project may be using a third-party plugin that is not compatible with the other 
plugins in the project or the version of Gradle requested by the project

Gradle Error Explaination

The things I have tried:

Upvotes: 5

Views: 9717

Answers (6)

GFPF
GFPF

Reputation: 949

In my case it was a compatibility problem between AGP (Android Gradle Plugin) and Gradle version:

Wrong config: AGP: 8.4.0 Gradle: 8.7

Good config: AGP: 8.4.0 Gradle: 8.6

All the answers helped, thanks for sharing!

enter image description here

enter image description here

Upvotes: 0

I just added below:

  • Build.gradle [Project] classpath 'com.android.tools.build:gradle:7.0.4'

  • Gradle.wrapper.properties distributionUrl=https://services.gradle.org/distributions/gradle-7.5.1-bin.zip

Upvotes: 1

I had. the same problem when I updated an old project in order to have new libraries and stuff, then started to appeared that problem. In my case I fixed this by cheking around the project and update version libraries, for example:

com.android.tools.build:gradle
org.jetbrains.kotlin:kotlin-gradle-plugin
com.google.dagger:hilt-android-gradle-plugin

And also I updated the hilt version

And that's it, it works again properly

Upvotes: 1

Dibyendu Mahata
Dibyendu Mahata

Reputation: 149

In my case, the Hilt version of the dependency was different from the Hilt plugin version.

Upvotes: 3

Julsapargi Nursam
Julsapargi Nursam

Reputation: 385

I experienced the same thing after I tried several things, the result is still the same.

It turned out that I had to update the version of the Firebase Performance library.

com.google.firebase:perf-plugin:1.3.5 to version 1.4.2

Upvotes: 1

Sheraz Hussain Turi
Sheraz Hussain Turi

Reputation: 47

I was facing the same issue. I just changed the version of these two lines. Replace these two lines with yours and sync the project.

Build.gradle (Project)

  1. classpath 'com.android.tools.build:gradle:7.0.4'

Gradle.wrapper.properties

  1. distributionUrl=https://services.gradle.org/distributions/gradle-7.5.1-bin.zip

I am using:

Android Studio Dolphin | 2021.3.1 Patch 1 Build #AI-213.7172.25.2113.9123335, built on September 30, 2022

Upvotes: 1

Related Questions