flutter run出现 Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

1 今天flutter run出现下面这样的情况

> Task :prepareKotlinBuildScriptModel UP-TO-DATE

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 3s
2 解决办法
在android  studio中的项目同时按住crtl+alt+shift+s

2 然后flutter run 就可以运行了

posted @ 2021-05-29 23:05  何人陪我共长生  阅读(5310)  评论(0编辑  收藏  举报