2023/08/21 22:25
Error
FAILURE: Build failed with an exception.
* Where:
Script ‘E:\app-dev\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy’ line: 1098
* 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_core() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.
* Try:
> Run with –stacktrace option to get the stack trace.
> Run with –info or –debug option to get more log output.
> Run with –scan to get full insights.
Solution
gradle-8.0.2-all version is not right. Change to another version in gradle/wrapper/gradle-wrapper.properties