title: Gradle task assembleDebug failed with exit code 1 (Runtime Exception)
body: <p>while starting a flutter application on vs code i am getting the following errors.</p>
  
  <blockquote>
    <p>Launching lib\main.dart on RMX1801 in debug mode...
    Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: C:\Users\sanjay.gradle\wrapper\dists\gradle-5.6.2-all\9st6wgf78h16so49nn74lgtbb\gradle-5.6.2-all.zip
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61)
        at org.gradle.wrapper.Install.createDist(Install.java:48)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
    [!] Gradle threw an error while trying to update itself. Retrying the update...
    Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: C:\Users\sanjay.gradle\wrapper\dists\gradle-5.6.2-all\9st6wgf78h16so49nn74lgtbb\gradle-5.6.2-all.zip
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61)
        at org.gradle.wrapper.Install.createDist(Install.java:48)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
    [!] Gradle threw an error while trying to update itself. Retrying the update...
    Gradle task assembleDebug failed with exit code 1
    Exited (sigterm)</p>
  </blockquote>
  
  <p>I am not getting why this is occurring . What can be the reason for this and how can this be solved?</p>