0

I am trying to run my flutter project on Android connected with USB Debugging Enabled , i tried running flutter doctor it saying everything is OK flutter doctorbut while running the project it stucks on gradle task assembling gradle assembling, also my device is authorised with my PC and all other commands like push pull working fine

Edit running flutter run -v gives an Error

[   +6 ms] Exception in thread "main" java.util.zip.ZipException: error in opening zip

file

[   +2 ms] [!] Gradle threw an error while downloading artifacts from the network.Retrying to download...
       

[+7209 ms] Exception: Gradle task assembleDebug failed with exit code 1
  • is it your first time? – classicdude7 Aug 16 '20 at 06:16
  • Try to Restart your mobile phone – farouk osama Aug 16 '20 at 06:17
  • yes this is my first time and i did tried to restart my device and tried revoking debugging permissions but no effects –  Aug 16 '20 at 06:27
  • and i am not familiar with flutter projects –  Aug 16 '20 at 06:28
  • run this command `flutter run -v` ,if you are first time running the flutter project it will take some time @BhavukSharma – Abhijith Aug 16 '20 at 07:40
  • it gives an Error , I updated the question and i will try reinstalling the Gradle may be my gradle files are corrupted @MorbiusBlack –  Aug 16 '20 at 07:59
  • The problem when you run the project first time it will download files from internet. `C:\Users\Usernameof your pc\.gradle\wrapper\dists` delete all files in dist folder and run the project again.make sure you have some high speed connection it need to download some other files too. @BhavukSharma – Abhijith Aug 16 '20 at 08:06
  • Ok thanks @MobiusBlack i will try that –  Aug 16 '20 at 08:08
  • i removed the flutter and installed it from scratch and now there is no problem with it thanks a-lot everyone for your attention –  Aug 16 '20 at 20:05

0 Answers0