简体   繁体   English

Gradle 无法在 android 工作室工作 [颤振]

[英]Gradle not working in android studio [flutter]

When I executed my code for the first time on the android studio ( flutter - dart project ) I got the below error当我第一次在 android 工作室(flutter - dart 项目)上执行我的代码时,我得到了以下错误

错误信息

I tried deleting it from %HOME%.gradle我尝试从%HOME%.gradle删除它

I even tried deleting and re-installing JDK but I'm still facing the same problem.我什至尝试删除并重新安装JDK ,但我仍然面临同样的问题。

and here is a picture of my environment variables and path if it may help如果有帮助,这是我的环境变量和路径的图片

环境变量

what worked for me: i changed my user name ( as you can see it was MystoGan, ), it had an ', ' on it so i figured it might be the problem, so after changing it and completely deleting android studio, i installed it again and it worked什么对我有用:我更改了我的用户名(如您所见,它是 MystoGan,),上面有一个“,”,所以我认为这可能是问题所在,所以在更改它并完全删除 android 工作室后,我安装了又一次,它奏效了

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

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