我知道你很着急但是请你别急,
授人与渔不如授人与渔
问题:版本兼容问题
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation
warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.6.1/userguide/command_line_interface.html#sec:command_line_warnings
1、请看这张 毫无人性的图(举例
)
2、它让你跳转这个文档
See https://docs.gradle.org/7.6.1/userguide/command_line_interface.html#sec:command_line_warnings
如果你时间充足,建议你跳转查看
如果时间有限,请继续浏览下边信息
3、查询gradle 版本兼容命令(使用窗口执行命令
)
这两条命令你都可以去尝试执行
- gradle help --warning-mode=all
-
查看控制台中的弃用情况,尽管它可能不会报告那么多详细信息
-
- gradle help --scan
- 查看生成的构建扫描的弃用视图
解决(你可以用来参考
)
执行
: gradle help --warning-mode=all
找到文件——注释掉提示的行数(
当然你要去改为兼容的语法
)
为了尽快写完这篇文章,我选择注释掉,因为我还要去解决我的语法兼容(啊哈哈)