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

后端 未结 6 1106
别那么骄傲
别那么骄傲 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:32

    The steps worked for me are as follows

    1. Go to wrapper file in android
    2. Delete 'gradle' file inside wrapper file
    3. Then delete 'gradlew' file
    4. Go to 'gradle-wrapper.properties'
    5. Replace distributionUrl with belo link https://services.gradle.org/distributions/gradle-6.4.1-all.zip
    6. Exit from android studio and re-open

    Hope this would be useful

提交回复
热议问题