Help How do I fix the ERROR: cmd.exe failed with args /c "D:\projects\MyProject3\Intermediate\Android\armv7\gradle\rungradle.bat" :app:assembleDebug

Today,i meet the problem again. After I replace the old computer and migrate the assets from the old computer to the new computer. I started configuring the Android environment according to the video. Then start packaging, this similar problem occured.


I tried all the solutions mentioned above and couldn’t solve it. In a blog post, the author mentions Android gradle,so I turned my eyes to Messages rather than Error. “download ,gradle” ,"Connect time out ". Delete folder named “.gradle” in "C:\Users\xxxxx", close all proxy.
Start packing, it succeed.

There are a number of factors contributing to this problem, so pay more attention to the message above the error.