3

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...".

enter image description here

James Z
  • 12,209
  • 10
  • 24
  • 44
Joseph Jang
  • 33
  • 1
  • 5
  • Make sure you are connected to the internet ... Does the gradle actually download their files if so? – Zain Feb 28 '20 at 00:46
  • have you tried this? https://stackoverflow.com/questions/52905774/activity-main-xml-not-showing-and-gradle-doesnt-finish-initial-build – kelvin Feb 28 '20 at 01:00
  • Yea... I tried both of the answers but it doesn't work... :p – Joseph Jang Feb 28 '20 at 01:56

4 Answers4

2

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

0

In Android Studio try to go to File -> Invalidate Caches/Restart -> Invalidate and restart.

easy_breezy
  • 1,073
  • 7
  • 18
0

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

Muhammad Yaseen
  • 278
  • 2
  • 12
0

Step 1:

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

Step1

Step 2:

Select Configure

Step2

Step 3:

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

Step3

Step 4:

Setup Android Studio as new

OR

Install new version of Android Studio

Udhaya
  • 335
  • 3
  • 12