Android Studio中Convention类型已弃用导致Gradle构建兼容问题求助
最近我在学习App开发,尝试集成Google Firebase的时候,碰到了一个Gradle构建的兼容问题,具体报错提示如下:
"Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0."
为了搞清楚具体是哪里出了问题,我在构建时设置了org.gradle.warning.mode=all来查看详细警告信息,得到的内容是:
"The org.gradle.api.plugins.Convention type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information:
at org.gradle.internal.extensibility.DefaultConvention.logConventionDeprecation(DefaultConvention.java:392)
at org.gradle.internal.extensibility.DefaultConvention.getPlugins(DefaultConvention.java:67)"
我仔细检查了自己的代码和项目配置文件,却找不到任何直接使用Convention类型的地方,实在不知道该从哪里入手解决这个问题。有没有经验丰富的开发者能给我一些建议,帮我定位问题根源并解决这个Gradle兼容警告呀?
备注:内容来源于stack exchange,提问作者Mantas Donela

