Stuck on Android Studio "Downloading Components" screen error - android-studio

I have been waiting 2 hours, I'm stuck in this stage, what I must do?

Related

timed out after 300seconds waiting for emulator to come online

I'm new at Android Studio(Android Studio Dolphin- 2021.3.1). I've created an AVD for the first time & trying to run it on Emulator. But once I click the "Run" icon, it is displaying "Connecting to Emulator" for a long time and then this error comes--> timed out after 300 seconds waiting for emulator to come online.
Please help me fixing this problem.
I tried some techniques by following YouTube videos, but it didn’t work ultimately.

How can I find out why Android Auto in developer mode won't connect to the "Desktop Head Unit"?

I am attempting to get car_app_library hello world example to run through android auto to the DHU.
I have two different workstations with Android Studio and the DHU 2.0Beta. I have two different Android Devices, a Galaxy S9+ and a Galaxy Tab S6.
With any combination, with ADB and DHU running, locally on the devices at best, I can get a full white screen to flash which disappears, and no connection from there.
On the device, I have enabled unknown sources in Android Auto, and I have started "Head Unit Server"
On the workstation, DHU simply indicates at all times, "Waiting for phone...".
Studio "Run" indicates "success, operation succeeded" but nothing happens.
I finally got this working after two days. I could tell when it was not working that 1/5 times I'd see a flashed screen prompting for bluetooth and to continue, but I could not click any buttons in time.
Finally,
I uninstalled the "Android Auto for phones" application on the device, and I think this was the real solution
I also moved to canary channel for studio, and then needed to uninstall and reinstall the desktop head unit.
After this, I could get the screen to show that I saw flashing before, and I had to accept it once, then it crashed again, then I started it all again, and it is finally working.

Android studio Gradle Build Running stuck, desktop app, How do i get it to complete the build?

I have created a default project with libGDX and imported it in android studio
i have not even touched the code and it is the default template that libGDX creates.
When i run it on android virtual device it works fine and displays a red screen and badlogic logo.
Problem occurs when i try to run the same thing as a desktop app.
when i click run, the app runs and displays the red background with badlogic logo however, Gradle Build Running is displayed in android studio status bar and it never completes, meanwhile the app is running image of what im talking about
Then when i stop the app i get the following error
Execution failed for task ':desktop:DesktopLauncher.main()'.
Build cancelled while executing task ':desktop:DesktopLauncher.main()'
How do i get gradle to finish the build for desktop app? if i run it on android emulator the build completes successfully in less than 10 seconds
More details:
in the edit configurations i have set the
main class to: com.packagename.desktop.DesktopLauncher
working directory: pointing to android assets
Other than that i haven't touched anything else. I've been searching the internet for the answer for hours and haven't found my issue. Thanks in advance for any clues to what is causing this. All the best :)

Android Studio Resource Manager not opening

I can't open the Resource Manager from Android Studio. It says "Waiting for the build to finish..." forever. I waited more than an hour but I still have the same issue --build never finishes.
How do I make sure build finishes?
I had the same problem. I Have tried many things but didn't work. Then I reset my android studio and now it's working.
For resetting,
How to reset Android Studio

android studio Device [emulator-5554] is online, waiting for processes to start up

I have installed Android studio, and i am trying to run a very simple program but my emulator device display android on the splash screen. I waited 10 mins but no change, read some forum i tried enabling "Use host GPU" but nothing has changed

Resources