简体   繁体   English

在Android Studio中运行Flutter项目时发生Gradle错误

[英]Gradle Error while running flutter project in Android Studio

I am completely new to flutter . 我完全flutter Yesterday I installed flutter, added path variables and it works straight from cmd . 昨天我安装了flutter,添加了路径变量,它可以直接从cmd I also created a project using cmd and opened it in Android Studio . 我还使用cmd创建了一个项目,并在Android Studio中将其打开。 Import of Dart and Flutter plugins has done, too. DartFlutter plugins导入也已完成。

Then what the problem could be here ? 那么这里可能出什么问题呢?

Gradle_Error

This error means that a file that Gradle has downloaded has become corrupted. 此错误意味着Gradle下载的文件已损坏。

Delete the .gradle directories in both your home directory and in your project's root directory and try building again. 删除您的主目录和项目的根目录中的.gradle目录,然后尝试重新构建。

you need to delete cache of android studio and restart build of the project . 您需要删除android studio的缓存并重新启动项目的构建。 go to file in android studio and click in invalidate cache screen 转到android studio中的文件,然后在无效缓存屏幕中单击

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM