简体   繁体   中英

activity_main.xml for android studio stuck on loading

I just downloaded Android Studio to make an app for my STEM competition. I tried making an app, opened the activity_main.xml file, but it is stuck on loading! It says, `

"Gradle: download 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

Android Studio makes a lot of files as caches and does not delete them. 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. Hope that will hep you

In Android Studio try to go to File -> Invalidate Caches/Restart -> Invalidate and restart. this will help u surely

Step 1:

Close all opened project and bring back Android Studio Welcome Screen .

第1步

Step 2:

Select Configure

第2步

Step 3:

Select Restore Default Settings...(Restore and Restart)

Step3

Step 4:

Setup Android Studio as new

OR

Install new version of Android Studio

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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