Gradle threw an error while downloading artifacts from the network. Retrying to download...error when I want to run flutter on mobile for the first time

2,713 views
Skip to first unread message

husam alkdary

unread,
Aug 3, 2020, 12:10:09 PM8/3/20
to Flutter Development (flutter-dev)
hi I 'm facing the following error when I want to run flutter on mobile for the first time

Running Gradle task 'assembleDebug'...
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
 at java
.util.zip.ZipFile.open(Native Method)
 at java
.util.zip.ZipFile.<init>(ZipFile.java:225)
 at java
.util.zip.ZipFile.<init>(ZipFile.java:155)
 at java
.util.zip.ZipFile.<init>(ZipFile.java:169)
 at org
.gradle.wrapper.Install.unzip(Install.java:214)
 at org
.gradle.wrapper.Install.access$600(Install.java:27)
 at org
.gradle.wrapper.Install$1.call(Install.java:74)
 at org
.gradle.wrapper.Install$1.call(Install.java:48)
 at org
.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
 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)
Running Gradle task 'assembleDebug'...
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
 at java
.util.zip.ZipFile.open(Native Method)
 at java
.util.zip.ZipFile.<init>(ZipFile.java:225)
 at java
.util.zip.ZipFile.<init>(ZipFile.java:155)
 at java
.util.zip.ZipFile.<init>(ZipFile.java:169)
 at org
.gradle.wrapper.Install.unzip(Install.java:214)
 at org
.gradle.wrapper.Install.access$600(Install.java:27)
 at org
.gradle.wrapper.Install$1.call(Install.java:74)
 at org
.gradle.wrapper.Install$1.call(Install.java:48)
 at org
.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
 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 downloading artifacts from the network. Retrying to download...
Exception: Gradle task assembleDebug failed with exit code 1


Souvik Dutta

unread,
Aug 3, 2020, 12:32:24 PM8/3/20
to husam alkdary, Flutter Development (flutter-dev)
Do you have a stable internet connection? It is required to download artifacts as said by the error.

Souvik flutter dev

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/8e5331a5-e6ff-4cc6-b1ed-bf522ae2fe4ao%40googlegroups.com.
Message has been deleted

husam alkdary

unread,
Aug 3, 2020, 1:54:46 PM8/3/20
to Flutter Development (flutter-dev)
but I create offline flutter project
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.

Souvik Dutta

unread,
Aug 3, 2020, 8:40:43 PM8/3/20
to husam alkdary, Flutter Development (flutter-dev)
Probably adding androidx support needs you to download some stuffs.

To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/bd7532cd-a52e-473b-ae20-87922e7d4c8ao%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages