I'm currently running Android Studio Bumblebee 2021.1.1 in windows 10.
The problem I have is each time I start android studio the device list is stuck in loading devices.
I tried these solutions
android studio device list stuck on loading/51101178
android device list showing in android studio got stuck/65177069
The soulutions provided in the threads sometimes work and sometimes don't but the real problem is even if I did fix it in the run time, The next time I open android studio it's still there.
I already tried updating android studio to latest version, reinstalling android studio, deleting all the caches and plugins and resetting it to default. Completely Deleting Sdk folder and downloading again. But nothing helped I don't know where this problem could be originate from
In my case deleting the "platform-tools" folder as Dyenal said didn't work because it said that the folder was open elsewhere (even when I had shut down android studio). If that's your case too, do this.
Close android studio
Go to your task manager
Go to the "Details" tab and look for "adb.exe" as seen in the image below.
Right-click on it and "End task".
Open android studio and pretend you weren't interrupted. Cheers :)
Go to SDK folder delete platform-tools folder.. invalidate and restart the studio..works for me!
After hours of research and try and error I finally figured out what was going on.
Turns out my adb configuration was conflicting with genymotion's. Nothing could have done at the side of android studio. I went to the genymotion settings ADB tab and changed from Use Genymotion Android Tools to Use custom Android SDK Tools and it went away at last
This is a temporary solution. Open terminal and type adb devices. Once your device starts showing up in terminal, it will start showing up in loading devices too.
This problem occurs due to Windows folder accessing especially when you change the AVD folder.
Windows prevent access to Windows partition root. you have multi options for solving this problem.
Move AVD folder to another driver. Then define it on the Environment variable
Move the AVD to C:\Users\<User>\.android\avd folder. this folder is accessible for Android studio.
Run emulator from device manager, then type adb devices in cmd prompt
Restarting my computer fixed the problem for me
When using Android Studio, or any other IDE which use their own ADB, it is necessary to set Genymotion to use the correct ADB instead of its inbuilt one. It is documented here: https://docs.genymotion.com/desktop/02_Application/#use-third-party-adbsdk
I only opened task manager and there were a bunch of adb.exe open so i ended all of them while android studio is running in the background so then adb.exe started again and then i go to android studio and find out that the issue was resolved.
Related
when I run my AVD from Android Studio it also runs devices I already deleted in the past. It also sets an "IDE error accurred" message.
I tried deleting *.lock's, setting a new device, re-installing the IDE, using other versions and many more things but nothing seems to work on my issue.
Any idea how to solve it?
I can't post images so here's a link of the problem
List of AVD's from command line
UPDATE
So I was able to fix that if anyone would ever need.
I deleted the device i was using.
I closed the Android Studio.
I deleted the .android folder completely.
I opened the Android Studio and created a new device. (don't run yet)
I went to Settings > Tools > Emulator and set off 'Launch in a tool window'.
Now everything works just fine.
After updating to Android Studio 2020.3.1 canary 15, when I try to run an emulator, it gets killed with this error:
The emulator process for AVD Pixel_4_API_30 has terminated.
It was working correctly in the previous version (4.1.3), but now after installing the new one, it shows the same error.
I've tried some solutions had suggested in almost similar cases; however, It still doesn't work.
I deleted my emulator (also I cleared inside of directory: /.android/avd/) and created a new one again
I updated the HAXM installer to version 7.6.5
I tried to run an emulator with lower APIs but...
Image of the error:
The main root cause of that issue is lack of free space on your disk
Faced this issue after update to arctic fox.
After seeing error message about termination, open android studio logs
("C:\Users\YourUserName\AppData\Local\Google\AndroidStudio2020.3\log\idea.log")
scroll it down and try to find log line with text "Emulator terminated with exit code". Probably, the reason for termination can be found a few lines above this message - for me it was
"Emulator: cannot add library vulkan-1.dll: failed".
If you have the same reason - go to C:\Windows\System32 directory, search here for file called vulkan-1-999-0-0-0.dll and just rename it to vulkan-1.dll (i've made a copy just in case and named it "vulkan-1.dll").
This fixed the issue for me.
Follow below steps to solve the issue:
Go to Tools -> SDK Manager
In SDK Manager Go To SDK Tools Tab and untick the Android Emulator and click on Apply. This step will uninstall the Android Emulator.
After uninstallation completes:
Again Open Tools -> SDK Manager -> SDK Tools -> Install the Android Emulator by enabling the check or tick on Android Emulator. This step will install the Android Emulator again.
After successful installation. Restart Android Studio. Create new emulator device and Run it. This should work.
Try to kill the emulator process and then you can reboot the emulator.
On Windows, bring out Task Manager and find the emulator process (you can find it starts with qemu-xxx, it might be wrapped inside Android Studio category), then click end task to kill the process.
For Linux (should be similar for windows)
Locate your Sdk/emulator directory
Run ./emulator -list-avds
Note the AVD name form output eg. 'Pixel_2_API_30'
Run ./emulator #Pixel_2_API_30
This will try to launch the emulator with selected device and show errors if any, in my case it was a disk space issue since I was low on home space.
emulator: ERROR: Not enough space to create userdata partition. Available: 5084.121094 MB at /home/user/.android/avd/Pixel_2_API_30.avd, need 7372.800000 MB.
I had plenty of space in other partition/disk, so I changed the AVD location by setting environment variable 'ANDROID_AVD_HOME' to preferred location, post this started the Android Studio and using the AVD Manager recreated a Device, HTH.
After going through all answers.
This answer can help you finding the root cause. clear the below file and restart the device to know the problem
C:\Users\YourUserName\AppData\Local\Google\AndroidStudio2020.3\log\idea.log"
My problem came as
2021-10-13 19:11:54,776 [1564693] INFO - manager.EmulatorProcessHandler - Emulator: init: Could not find wglGetExtensionsString! arbFound 0 listarbNull/empty 1 0 extFound 0 extNull/empty 1 0 remote 0
On further search i found the this which points out changing advanced settings (Ram size) and Graphics configuration
Step 1 :- while setting up device click on advanced settings
Step 2 :- Change the 2 setting as highlighted. make it 512 and Automatic to Software GLES
This solved the same issue for me:
Open text editor (eg. notepad)
Type this code:
Vulkan=off
GLDirectMem=on
Save the file as "advancedFeatures.ini" in .android directory. If your user is named Admin, under windows it would be: C:\Users\Admin\.android\advancedFeatures.ini.
Run your app.
In Windows, open the Task Manager and kill the process "qemu-system"
I faced the same issue. Fixed it by enabling the Hyper-V on my Windows 10 OS. I just typed Hyper in the Start menu and went to Turn Windows features on or off menu and ticked all the Hyper-V checkboxes like this:
I updated and had the same problem.
I solved the problem by changing the Multicore CPU and memory
To solve these type of issue, generally you haven't some file, that you need to download it from google and paste. I was facing the same issue. but after a lot of time spent on google finally I have got the solution.
Following are the steps:-
Create virtual device using AVD Manager
start the emulator
if it is showing your emulator has terminated
Then go to ("C:\Users\YourUserName\AppData\Local\Google\AndroidStudio2020.3\log\idea.log")
check the issue by scroll down(on bottom you can check)
If you are getting the same issue
Then go to C:\Windows\System32 directory, search here for file called vulkan-1-999-0-0-0.dll
If file is already in directory, then just rename the file into "vulkan-1.dll"
else download the file from this link
you will have zip file, just extract and paste the vulkan-1-999-0-0-0.dll file and perform the step 8.
This error also occurs when there is not enough free space left on your computer.
be sure to free up some more space.
$ emulator -avd phone2
ERROR | Not enough disk space to run AVD 'phone2'. Exiting...
OK I fixed my problem like the one above by:
I removed the emulator in the AVD manager and reinstalled it. I also deleted the ANDROID_HOME environment variable and it worked again for me in Artic Fox
I am on the latest version of Android Studio Artic Fox 2020.3.1 Patch One on Windows 10 and I upgraded the emulator yesterday 8/18/21 and it completely broke functioning emulators.
I would like to mention something about this,
The mentioned solutions works, however, if none works then please make sure you have sufficient space where AVDs are generated.
If system do not find the enough space to operate, it will give this error too, same as in my case.
If space is not an issue for you then mentioned other solutions must work.
Check if your disk space of computer is full or not. In my case C:// was full
In case if anyone facing this issue. I solved it by:
Go to C:\Users\YourUserName\.android
Create a file named advancedFeatures.ini
Then add the following lines of code in the file:
Vulkan = off
GLDirectMem = on
This might sound like a joke but restart the computer maybe? I had some emulator processes hanging in the task manager. Restarted the computer and it worked. Maybe it is an android studio bug.
Was facing similar issue while launching arm64 emulator. I had enough disk space and tried uninstalling the emulator and reinstalling it. But this didn't help.
I was able to figure out the issue by running the below commands:
emulator -list-avds
emulator #NameOfAvd
This assumes you've emulator on the path. Executing the last command showed me the below errors which weren't visible when running from Android Studio:
[4453299712]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at ../emulator/lib64/qt/lib
Could not launch '/Users/username/../emulator/qemu/darwin-x86_64/qemu-system-aarch64': No such file or directory
Executing the command emulator #NameOfAvd from the Android/sdk/tools path allowed me to start the arm64 AVD.
It's an issue of latest Emulator.
I upgraded to v30.6.4 last night and got the same issue.
Please use Genymotion instead before Android Studio Emulator issuing its next update.
It's free for personal use.
https://www.genymotion.com/download/
My issue is resolved when I changed the CPU/ABI setting from "armeabi-v7a" to "x86_64".
Go to Device Manager on Android Studio
Click Drop Menu on Action Panel
Click Wipe Data
Launch your AVD Manager Again OR Restart Your computer
I Remove the Emulator folder from the SDK path and download the new component. It's working fine.
I was not able to start API_30 devices.
I had to install the latest hardware accelerator version (HAXM v7.7.0) from https://github.com/intel/haxm
Then
The simple solution was to free up some space from the hard-disk
In my case, only 2gb space was available in the hard-disk.
I made some space by emptying the bin, and now available space was 22gb.
Then I just started the emulator normally ( didn't uninstall or deleted anything) and it started.
In my MacbookPro M1 Pro, The issue was I had selected the x86 image while creating the emulator device.
Changing this setting and using the image from the recommended images resolved my issue.
I face same kind of issues... After increase free space of machine its working fine...
For those who running flutter/Dart in android studio. Here are the step on how I solved this:
Go to any of your current device in Device manager.
Click the edit icon (Pen Icon). Then dialog for edit will open.
Now change the "Graphics" property in the AVD under Emulated Performance from automatic to "Software-GLES 2.0". it works for me.
Note: Am using android studio Bumblebee | 2021.1.1 patch 2
The problem might be due to some corrupted data during saving the state. Cold start the VM will solve the problem.
Really, I had same issue. I had tried over 10 times..im not professor but I found finally. It was a tough time for me.
Try again follow next.
If you install Android again again, I think import setting has problem. wrong Path on android screen. not environment Path
Because automatically it is determined old path(when it installed first)
and Choose a lower API if possible
in my case, when I use API 17, the emulator acted. but API 30, The emulator has terminated...so, I think if you use windows 7 or low spec, use low API environment.
In addition, I needed installing emulator-windows_x64-7491168,zip (In my case)
After having tested solutions suggested in this forum, the only one which solved the problem to me is to free space in my hard disk. In my case I needed at least 7 GB to make it work.
I know that this was running on my system half a year ago, so I don't know what else to do.
I deleted every Android-related cofig-folders in my home directory. The newly generated config files are located in my home directory as well.
I'm starting Android Studio with an empty project (just created it new), click on "AVD Manager", install a Nexus6 with Nougat x86 (API Level 25) and then I'm hitting the "Launch this AVD in the emulator"-button.
At the bottom of Android-Studio a progress bar appears along with "Starting AVD...", but as the progress bar hits 100% nothing else happens.
No error message, no process being started, simply nothing happens after hitting that button.
I installed the package from the AUR https://aur.archlinux.org/packages/android-studio. I'm using LXDE as the DE.
Looks like android studio needed to install emulator when it was updated...
I got this problem after updating android studio and it was solved by the installing the emulator from SDK manager
After the last update my emulator stopped working without throwing any error. I had to edit my .bashrc to set it to use the system libraries.
Open your .bashrc file by typing the following commands on terminal:
cd ~/
gedit .bashrc
Add this line to the end of the fine:
export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1
Restart the computer.
Edit: Instead of restarting you can also run source ~/.bashrc
Android emulator was not updated in my Android Studio. I went to SDK manager and installed the updated version from tools tab and then it started working.
I went to Tools > Android > AVD Manager
I then edited the desired device [galaxy_note_4] in my case, Selected Software - GLES 2.0, under Emulated Performance.
Worked for me, hope this helps
I went to AVD manager and cleared out my existing devices and just created a new one. Seemed to do the trick for me.
Just delete your avd and try to create a new one then you can see the error logs in idea.log.
In my case it couldn't find userdata.img for some reasons.
For me what worked was:
Select all x86 images in the respective phone model. Go to "show package details" in Android Studio within the "SDK" under the selected models and enusre the x86 image options are selected for the respective chosen model.
Also make sure no other applications are open at the backend not even the browser. Because even that is leading to hang may be due to the configuration of the system that I have.
In my case updating Intel Hardware Accelerated Execution Manager (HAXM) did the trick.
You can do it in SDK Manager under the SDK Tools tab
I'm Windows 7 64-bit user and I got Android Studio problem after I update the latest version of Android Studio and SDK components..
The following SDK components were not installed: sys-img-x86-addon-google_apis-google-22 and addon-google_apis-google-22
Please help me to resolve this problem. Thank you.
I had the same issue when trying to upgrade Android Studio from 1.1 to 1.2 on Mac OS 10.10.
I solved the problem by selecting custom installation instead of standard. Also we need to select the Android SDK Platform (Lollipop 5.1).
Choose the new UI Design >> next
Just try to cancel the "Downloading Components" from upper right
corner 'X' button.
A dialog box will appear then click OK (wait a bit for first time
launch)
I uninstall Only Android studio (keep the SDK and Emulator) and then reinstall it just android studio. took me 2 minutes and my android studio work again.
I had this same problem, but I'm a Linux user.
I resolved the problem by reattempting the installation with adminstrator privileges. [For those Linux users reading this, I ran studio.sh with sudo.]
I just click 'Retry' and it's ok! Also run on Win7 64-bit.
TRY BELOW SOLUTIONS.
SOLUTION 1:
-> Run Android Studio as Administrator (this is only required for first run or when any issues arise due to automatic updates on any run in future).
Though it shows API 23 is or any other updates are not installed (and wouldn't show any 'Retry' button), BUT still the download and installation of rest of the updates would proceed (you can see the download progress incrementing even after seeing the above errors). So, DO NOT ABORT the operation.
-> At the end of installation (after rest of successful updates are installed) it would this time display the "Retry" button to retry installation for API 23 or any other versions which had failed earlier. Then click the "Retry" button, it would work this time.
This would resolve your issue with successful installation.
-> Next time onward no need to run Android studio as Administrator, unless it does any automatic updates and shows similar issues.
SOLUTION 2:
-> Alternative approach is to install any updates (which ever failed in earlier attempt) from Android SDK Manager first and then later launch Android Studio (which would not need any check for updates and any additional installations).
To install any features or updates, run Android SDK manager as administrator (run as administrator is not mandatory for this but preferred to avoid any permissions related issues) and check the required options and proceed with the installation without any issues.
SOLUTION 3:
-> If still your issue is not resolved, then try the proxy solution as suggested by others or check your internet connectivity if it's working properly or not.
*Any of the above solutions should resolve your issues.
go to c->users->[Your user account]-> remove android 1.2 and restart the android studio
when it ask to import select first radio button which is import setting from previous config
there you go fixed
I am using Windows 7 Professional and I was having same problem #Bayu Mohammad Lufty not worked for me.
I simply delete .AndroidStudio1.2 from my C:\Users\UserName\ and restart my Android studio again.
It open Android Studio perfectly!
It configured everything again in next start :)
I'm a MacOS user.
I solved it by uninstalling Android Studio and reinstalling it again.
If you want to try this link helped me a lot.
Uninstall Android Studio MacOS (terminal)
When you are installing Android Studio, under Install type do not use standard setting, use custom setting instead, and check all the option boxes in the next step.
i have solve my same problem
i update my android studio, and i choose not to import my setting from my previous version than that problem appear.
than i realize that i have 2 AndroidStudio folder on my windows account (.AndroidStudio and .AndroidStudio1.2) and on my new .AndroidStudio1.2 folder there are no other.xml file.
than i copy other.xml file from C:\Users\my windows account name.AndroidStudio\config\options to C:\Users\my windows account name.AndroidStudio1.2\config\options
and that how i solve my problem.
I'm using UBUNTU and I got this same error. I restarted the set up using sudo and did a custom install. This solved my problem!
--More Specific--
re-installed using # sudo ./studio.sh
then I made sure to click "Custom Install"
then I made sure all packages were selected.
And I got this message Android virtual device Nexus_5_API_22_x86 was successfully created
I just run:
C:\Users[Username]\AppData\Local\Android\sdk\SDK Manager.exe
Install SDK Platform Android M Preview
And run Android Studio again.
It's working for me :D
When this error occured I first clicked retry for few times and waited for 2 minutes and clicked 'retry' then it installed without any error.(for 2 minutes I was searching to solve this problem online).
I was getting an "out of space" error, which left me scratching my head as I had plenty of disk space, until I realized that it ran out of space on /tmp, which on Arch Linux is mounted on a tmpfs with a size limit.
I searched all day but haven't find a solution yet.
Today I installed Android Studio without any problems.
I added the correct path.
JAVA_HOME to C:\Program Files\Java\jdk1.8.0_20
and
JDK_HOME to C:\Program Files\Java\jdk1.8.0_20
But, when I start the program it freezes on the loading screen. (The gray picture with the green android logo and text Android Studio)
It does create a process that I can't close, but after waiting for 20 minutes it's still on that screen.
I tried a clean install, also I tried the 32bit version without any success because it complained about the jvm that I could not fix for some reason.
I also did an update for it, but without success.
I have no idea what else I can try to fix this, but I also don't see myself going back to eclipse.
What worked for me was to disconnect my android phone which was connected to the computer(in the debugging mode).
I went from 1.5 to 2.0 and after updating it wouldn't load (hung at the startup screen). I had to delete the .android folder, the android.15 folder and the .AndroidStudioPreview2.0 folder under user. I also had to rename the SDK folder and after it started up I rename it back to what it was. Which means I had to add the path back to android studio. This was the only way I got it to work.
The same issue. "Run as administrator" helped me.
Another possible solution comes from JLund (from the comments):
I did this from the command line:
adb kill-server
adb start-server
and that unfroze Android Studio at startup for me.
Make sure there is no ANDROID_SDK_HOME, ANDROID_HOME or the like defined as you environment variable. You might need to uninstall any Android SDK previously installed manually after removing those environment variable.
My Android Studio auto loads the last worked-on project.
I cancelled the loading project before the IDE hung.
The Android Studio launcher comes up. Select the "Open an existing..." option.
Windows 10
Java 1.8.0_131
Android Studio 3.2.1
Android Studio kept getting hung up on a white screen before the IDE loaded any buttons. I renamed the project that it was trying to load, restarted Android Studio, and selected another project and it loaded correctly.
I had to revamp all manually installed 'HOME' environments and start it again-