I’m working with Flutter on Android Studio, and I can run and hot reload my app on an Android emulator without any issues. However, the second try to build an APK, I encounter an error with the code ‘1’ and the following message in the console:
“[!] Gradle threw an error while downloading artifacts from the network.”
I’ve tried enabling and disabling my VPN, but the issue persists. I managed to download the files that Gradle failed to download, but I’m unsure of how to utilize them.
Could someone help me on resolving this issue and successfully building an APK with Flutter?
Roham Zardosht is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.