Gradle错误:“未找到ID为'dev.flutter.flutter-gradle-plugin'的插件”- Flutter

mbyulnm0  于 2023-11-18  发布在  Flutter
关注(0)|答案(1)|浏览(673)

我在Flutter项目中遇到了一个Gradle错误,我似乎无法解决。当我尝试构建和运行Flutter应用时,我收到以下错误:

Could not apply requested plugin [id: 'dev.flutter.flutter-gradle-plugin', version: '1.0.0'] as 
it does not provide a plugin with id 'dev.flutter.flutter-gradle-plugin'. This is caused by an 
incorrect plugin implementation. Please contact the plugin author(s).
> Plugin with id 'dev.flutter.flutter-gradle-plugin' not found.

字符串
此错误在我的app模块的build.gradle文件中触发,位于此行:

apply plugin: 'dev.flutter.flutter-gradle-plugin'


如果您需要任何进一步的信息来帮助我解决这个问题,请告诉我。谢谢!

xriantvc

xriantvc1#

尝试升级Flutter:

flutter upgrade

字符串

相关问题