Error

FAILURE: Build failed with an exception. * Where: Script 'E:\app-dev\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' line: 1127 * What went wrong: A problem occurred evaluating root project 'android'. > A problem occurred configuring project ':app'. > Could not create task ':app:copyFlutterAssetsDebug'. > Could not create task ':app:mergeDebugAssets'. > Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

Solution

I am working on it. I will udpate this post as soon as I solve it.