What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':wakelock' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50
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.
i am getting this error on new flutter version
Resolving dependencies... better_player 0.0.63 (0.0.83 available) collection 1.17.2 (1.18.0 available) flutter_lints 2.0.3 (3.0.0 available) flutter_widget_from_html_core 0.6.0-rc.2021031201 (0.14.5+1 available) lints 2.1.1 (3.0.0 available) material_color_utilities 0.5.0 (0.8.0 available) meta 1.9.1 (1.11.0 available) petitparser 5.4.0 (6.0.1 available) stack_trace 1.11.0 (1.11.1 available) stream_channel 2.1.1 (2.1.2 available) test_api 0.6.0 (0.6.1 available) visibility_detector 0.2.2 (0.4.0+2 available) wakelock 0.4.0 (0.6.2 available) wakelock_macos 0.1.0+3 (0.4.0 available) wakelock_platform_interface 0.2.1+3 (0.3.0 available) wakelock_web 0.2.0+3 (0.4.0 available) web 0.1.4-beta (0.3.0 available) xml 6.3.0 (6.4.2 available) Got dependencies! Launching lib/main.dart on RMX2020 in debug mode... Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
What went wrong: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. The following dependencies do not satisfy the required version: project ':wakelock' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 22s Exception: Gradle task assembleDebug failed with exit code 1