title: stuck at Running Gradle task 'assembleDebug'
body: <p>i'm runing Pop_OS! 20.10</p>
  <pre><code>flutter doctor -v
  </code></pre>
  <blockquote>
  <p>[✓] Flutter (Channel stable, 1.22.3, on Linux, locale en_US.UTF-8) •
  Flutter version 1.22.3 at /home/samdc/DevTools/flutter • Framework
  revision 8874f21 (3 months ago), 2020-10-29 14:14:35 -0700 • Engine
  revision a1440ca392 • Dart version 2.10.3 • Pub download mirror
  <a href="https://pub.flutter-io.cn" rel="nofollow noreferrer">https://pub.flutter-io.cn</a> • Flutter download mirror
  <a href="https://storage.flutter-io.cn" rel="nofollow noreferrer">https://storage.flutter-io.cn</a></p>
  <p>[✓] Android toolchain - develop for Android devices (Android SDK
  version 30.0.3) • Android SDK at /home/samdc/DevTools/Android/SDK •
  Platform android-30, build-tools 30.0.3 • Java binary at:
  /opt/android-studio/jre/bin/java • Java version OpenJDK Runtime
  Environment (build
  1.8.0_242-release-1644-b3-6222593) • All Android licenses accepted.</p>
  <p>[!] Android Studio • Android Studio at /opt/android-studio ✗ Flutter
  plugin not installed; this adds Flutter specific functionality. ✗ Dart
  plugin not installed; this adds Dart specific functionality. •
  android-studio-dir = /opt/android-studio • Java version OpenJDK
  Runtime Environment (build
  1.8.0_242-release-1644-b3-6222593)</p>
  <p>[✓] VS Code (version 1.52.1) • VS Code at /usr/share/code • Flutter
  extension version 3.18.1</p>
  <p>[✓] Connected device (1 available) • Google Nexus 5 (mobile) •
  192.168.56.101:5555 • android-x86 • Android 5.1 (API 22)</p>
  </blockquote>
  <pre><code>dart --version
  </code></pre>
  <blockquote>
  <p>Dart SDK version: 2.10.3 (stable) (Tue Oct 27 14:44:30 2020 +0100) on
  &quot;linux_x64&quot;</p>
  </blockquote>
  <pre><code>java --version
  </code></pre>
  <blockquote>
  <p>openjdk 14.0.2 2020-07-14 OpenJDK Runtime Environment (build
  14.0.2+12-Ubuntu-1) OpenJDK 64-Bit Server VM (build 14.0.2+12-Ubuntu-1, mixed mode, sharing)</p>
  </blockquote>
  <pre><code>gradle -v
  </code></pre>
  <blockquote>
  <pre><code>Gradle 6.8
  
  Build time: 2021-01-08 16:38:46 UTC
  Revision: b7e82460c5373e194fb478a998c4fcfe7da53a7e
  
  Kotlin: 1.4.20
  Groovy: 2.5.12
  Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
  JVM: 14.0.2 (Private Build 14.0.2+12-Ubuntu-1)
  OS: Linux 5.8.0-7630-generic amd64
  </code></pre>
  </blockquote>
  <p>When i try to run flutter app from terminal using <code>flutter run</code> i get this massege</p>
  <blockquote>
  <pre><code>Launching lib/main.dart on Google Nexus 5 in debug mode...
  Running Gradle task 'assembleDebug'...
  </code></pre>
  </blockquote>
  <p>and it will be stuck forever .</p>
  <p>and as the emulator i'm using genymotion
  and i'm using VPN because my country is banned from using google services , and the internet speed is unstable .
  and also i tried to run the app from VS Code with no luck .
  i've been trying to install flutter for 2 weeks with no luck , hope find the solution</p>
  <p>things i tried :
  flutter clean
  I have changed the Gradle wrapper properties distribution URL version to: 6.8-all</p>
  <p>Edit : afyer a while of waiting the <code>flutter run</code> command throw this error</p>
  <blockquote>
  <p>Launching lib/main.dart on Google Nexus 5 in debug mode... Running
  Gradle task 'assembleDebug'...<br />
  Exception in thread &quot;main&quot; java.util.zip.ZipException: error in
  opening zip file Running Gradle task 'assembleDebug'...<br />
  at java.util.zip.ZipFile.open(Native Method)             Running
  Gradle task 'assembleDebug'...<br />
  at java.util.zip.ZipFile.(ZipFile.java:225)        Running
  Gradle task 'assembleDebug'...<br />
  at java.util.zip.ZipFile.(ZipFile.java:155)        Running
  Gradle task 'assembleDebug'...<br />
  at java.util.zip.ZipFile.(ZipFile.java:169)        Running
  Gradle task 'assembleDebug'...<br />
  at org.gradle.wrapper.Install.unzip(Install.java:214)    Running
  Gradle task 'assembleDebug'...<br />
  at org.gradle.wrapper.Install.access$600(Install.java:27) Running
  Gradle task 'assembleDebug'...<br />
  at org.gradle.wrapper.Install$1.call(Install.java:74)    Running
  Gradle task 'assembleDebug'...<br />
  at org.gradle.wrapper.Install$1.call(Install.java:48)    Running
  Gradle task 'assembleDebug'...<br />
  at
  org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
  Running Gradle task 'assembleDebug'...<br />
  at org.gradle.wrapper.Install.createDist(Install.java:48) Running
  Gradle task 'assembleDebug'...<br />
  at
  org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
  Running Gradle task 'assembleDebug'...<br />
  at
  org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
  Running Gradle task 'assembleDebug'...<br />
  Running Gradle task 'assembleDebug'... Done<br />
  470.0s (!) [!] Gradle threw an error while downloading artifacts from the network. Retrying to download... Exception in thread &quot;main&quot;
  java.util.zip.ZipException: error in opening zip file
  at java.util.zip.ZipFile.open(Native Method)<br />
  at java.util.zip.ZipFile.(ZipFile.java:225)<br />
  at java.util.zip.ZipFile.(ZipFile.java:155)<br />
  at java.util.zip.ZipFile.(ZipFile.java:169)<br />
  at org.gradle.wrapper.Install.unzip(Install.java:214)<br />
  at org.gradle.wrapper.Install.access$600(Install.java:27)<br />
  at org.gradle.wrapper.Install$1.call(Install.java:74)<br />
  at org.gradle.wrapper.Install$1.call(Install.java:48)<br />
  at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
  at org.gradle.wrapper.Install.createDist(Install.java:48)<br />
  at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
  at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
  Running Gradle task 'assembleDebug'...<br />
  Running Gradle task 'assembleDebug'... Done<br />
  0.2s [!] Gradle threw an error while downloading artifacts from the network. Retrying to download... Exception: Gradle task assembleDebug
  failed with exit code 1</p>
  </blockquote>