android studio编译时gradle问题Deprecated Gradle features

gradle报出问题

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.

在项目下gradle.properties文件加入

# org.gradle.warning.mode=(all,none,summary) 三个参数可选
org.gradle.warning.mode=all

再次build,IDE会提示详细的项目异常点,根据提示去修改

posted @ 2022-12-08 16:12  swalka`x  阅读(276)  评论(0编辑  收藏  举报