[英]activity_main.xml for android studio stuck on loading
I just downloaded Android Studio to make an app for my STEM competition.我刚刚下载了 Android Studio 来为我的 STEM 比赛制作一个应用程序。 I tried making an app, opened the activity_main.xml file, but it is stuck on loading!
我尝试制作一个应用程序,打开了activity_main.xml 文件,但它在加载时卡住了! It says, `
它说,`
"Gradle: download gradle-5.6.4-all.zip...".
“Gradle:下载 gradle-5.6.4-all.zip...”。
在 Android Studio 中尝试转到 File -> Invalidate Caches/Restart -> Invalidate and restart。
Firstly you need to try that option首先,您需要尝试该选项
Go to Build-> Clean Project转到构建-> 清理项目
After clean your project complete清理项目完成后
Go to Build-> Rebuild Project转到构建-> 重建项目
IF that thing does not solve the problem then如果那件事不能解决问题那么
Please请
Go to File->Invalidate Cache/Restart-> Invalidate and restart Actually转到 File-> Invalidate Cache/Restart-> Invalidate and restart 实际上
Android Studio makes a lot of files as caches and does not delete them. Android Studio 将大量文件作为缓存,并且不会删除它们。 This can cause trouble when there is a need to make new files, so clearing caches will clear the old cache and make Android Studio faster and Smooth.
这可能会在需要制作新文件时造成麻烦,因此清除缓存将清除旧缓存并使 Android Studio 更快更流畅。 Hope that will hep you
希望能帮助你
In Android Studio try to go to File -> Invalidate Caches/Restart -> Invalidate and restart.在 Android Studio 中尝试转到 File -> Invalidate Caches/Restart -> Invalidate and restart。 this will help u surely
这肯定会帮助你
Step 1:第1步:
Close all opened project and bring back Android Studio Welcome Screen
.关闭所有打开的项目并带回
Android Studio Welcome Screen
。
Step 2:第2步:
Select Configure
选择
Configure
Step 3:第 3 步:
Select Restore Default Settings...(Restore and Restart)
选择
Restore Default Settings...(Restore and Restart)
Step 4:第四步:
Setup Android Studio as new将 Android Studio 设置为新的
OR或者
Install new version of Android Studio安装新版本的 Android Studio
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.