您的项目可能正在使用与项目中的其他插件不兼容的第三方插件

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

提问人:Sarwar Sateer 提问时间:7/31/2022 最后编辑:Sarwar Sateer 更新时间:5/4/2023 访问量:2351

问:

问题可能相似或看起来重复,但事实并非如此。我在 Stackoverflow 和 YouTube 上尝试了所有可能的解决方案,但我无法解决我的项目问题。我也已经将该应用程序发布到 Google Play 商店。但现在面临这个问题。

错误:

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

我尝试过的事情:

  • 我删除了所有 Gradle 文件并再次下载它们。

  • 我将所有库和存储库与我的其他项目进行比较,这些项目可以毫无问题地工作。(但还没有解决这个项目的问题)。

  • 我最近添加了一个模块来在这个应用程序上添加原生广告,并将其也删除了。(没有任何积极影响)。

  • 有几次我重新启动了项目并重建了项目。(结果:无)我尝试了我能尝试的一切。问题仍然存在。

java android-studio android-gradle-plugin android-studio-3.0

评论

1赞 Axay Prajapati 9/13/2022
嘿,同样的问题在这里。你找到任何解决方案了吗?

答:

0赞 Sheraz Hussain Turi 11/1/2022 #1

我面临着同样的问题。我只是更改了这两行的版本。 将这两行替换为您的行并同步项目。

Build.gradle (项目)

  1. 类路径 'com.android.tools.build:gradle:7.0.4'

Gradle.wrapper.properties

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

我正在使用:

Android Studio 海豚 |2021.3.1 补丁 1 Build #AI-213.7172.25.2113.9123335,构建于 2022 年 9 月 30 日

0赞 Julsapargi Nursam 5/4/2023 #2

我尝试了几件事后经历了同样的事情,结果还是一样的。

事实证明,我必须更新Firebase性能库的版本。

com.google.firebase:perf-plugin:1.3.5 更改为版本 1.4.2