Gradle task assembleDebug failed with exit code 1 (Runtime Exception)

后端 未结 6 1097
别那么骄傲
别那么骄傲 2020-12-21 15:53

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

6条回答
  •  既然无缘
    2020-12-21 16:47

    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.

提交回复
热议问题