my new flutter project failed to run on my device with exception

85 views Asked by At
  • What went wrong: An exception occurred applying plugin request [id: 'dev.flutter.flutter-gradle-plugin', version: '1.0.0']

Failed to apply plugin 'dev.flutter.flutter-gradle-plugin'. No signature of method: FlutterPlugin.allprojects() is applicable for argument types: (FlutterPlugin$_apply_closure2) values: [FlutterPlugin$_apply_closure2@31c4d98d]

i simply want run my app and i had previously built project those are also showing the same error. i am using Flutter 3.16.0 Tools • Dart 3.2.0 • DevTools 2.28.2

1

There are 1 answers

4
ABHISHEK REDDY GOTHAM On

may be this was because of "Depriciated Gradle plugin application",try replacing the existing plugin application in android/settings.gradle, with

pluginManagement { ... includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") }

plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" ... }