while starting a flutter application on vs code i am getting the following errors.
Launching lib\\main.dart on RMX1801 in debug mode... Exception in
It is caused by the Gradle distribution version used. To fix this, either downgrade your Gradle version to the previous or upgrade it to the next stable one. These are the Gradle distribution versions available.
Go to
android / gradle / wrapper / gradle-wrapper.properties
and replace the current Gradle version this (or choose another from Gradle distribution)
distributionUrl=https://services.gradle.org/distributions/gradle-6.0.1-all.zip
I upgraded my Gradle version from 5.6.2 to 6.0.1, and it works fine with me.