I have installed Android Studio in a new laptop, and now I cannot get AVD to work.
When I try to run a device, I get a message "The emulator process for AVD <AVD-name> was killed"
immediately after launching the device.
I have tried with API 29 and 30.
I have installed the following tools
If I try to run the emulator by command line I get:
C:\Users\Nuno\AppData\Local\Android\Sdk\emulator>emulator.exe -avd Nexus_6_API_30
emulator: Android emulator version 30.6.5.0 (build_id 7324830) (CL:N/A)
handleCpuAcceleration: feature check for hvf
added library vulkan-1.dll
Failed to open /qemu.conf, err: 2
HAX is working and emulator runs in fast virt mode.
emulator: INFO: GrpcServices.cpp:315: Started GRPC server at 127.0.0.1:8554, security: Local
emulator: INFO: EmulatorAdvertisement.cpp:93: Advertising in: C:\Users\Nuno\AppData\Local\Temp\avd\running\pid_11172.ini
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
C:\Users\Nuno\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: error while loading state for instance 0x0 of device 'goldfish_pipe'
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
deleteSnapshot: for default_boot
VCPU shutdown request
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
Failed to sync vcpu reg
emulator: Saving state on exit with session uptime 25 ms
VCPU shutdown request
I think everything is the same as what I had in the other laptop, expect in this one I am using HAXM. But if I unistall HAXM, I cannot launch a device in AVD, and I have to install it again. I don't know if it is related to the issue.
Any ideas?
Thanks,
Nuno
I solved the issue by disabling the "HP Sure Click" services and restarting my computer (my new laptop is an HP)
Related
I'm trying to open a plugin for SNAP (to process Sentinel-3 imagery) on my Mac - the plugin downloads as an .exe file which means I need to open it using WineBottler. Every time I try and open the file however, I get this error message:
###BOTTLING### default.sh
/var/folders/rz/rr6ytzhx5gl60f1v1tbc67xm0000gn/T/AppTranslocation/6CDA1855-FA78-4A2A-A976-2C1A539F36ED/d/WineBottler.app/Contents/Frameworks/WBottler.framework/Resources/bottler.sh: line 39: /Applications/Wine.app/Contents/Resources/bin/wine: Bad CPU type in executable
###BOTTLING### Gathering debug Info...
Versions
OS...........................: darwin21
Wine.........................:
WineBottler..................: 1.8.6
Wineticks....................: 20220411-next - sha256sum: b6370f13c4dc410023f2a4e4e9a4385d2a0420031666c2f30befccc9b39c8f65
Environment
PWD..........................: '/Applications/Wine.app/Contents/Resources/bin'
PATH.........................: /Applications/Wine.app/Contents/Resources/bin:/usr/bin:/bin:/usr/sbin:/sbin
USER.........................: hannah
HOME.........................: /Users/hannah
COMPUTERNAME.................: hannahâs MacBook Air
BUNDLERESOURCEPATH...........: /var/folders/rz/rr6ytzhx5gl60f1v1tbc67xm0000gn/T/AppTranslocation/6CDA1855-FA78-4A2A-A976-2C1A539F36ED/d/WineBottler.app/Contents/Frameworks/WBottler.framework/Resources
WINEPREFIX...................: /Applications/Wine.app/Contents/Resources
WINEPATH.....................: /Applications/Wine.app/Contents/Resources/bin
LD_LIBRARY_PATH..............: /Applications/Wine.app/Contents/Resources/lib:/opt/X11/lib:/usr/X11/lib
DYLD_FALLBACK_LIBRARY_PATH...: /Applications/Wine.app/Contents/Resources/lib:/usr/lib:/opt/X11/lib:/usr/X11/lib
SILENT.......................:
http_proxy...................:
https_proxy..................:
ftp_proxy....................:
socks5_proxy.................:
Bottle
TEMPLATE.....................:
BOTTLE.......................: /Users/hannah/Desktop/Untitled.app
INSTALLER_URL................: /Users/hannah/Desktop/iCOR_Setup_3.0.0.exe
INSTALLER_IS_ZIPPED..........: 0
INSTALLER_NAME...............: iCOR_Setup_3.0.0.exe
INSTALLER_ARGUMENTS..........:
REMOVE_MONO..................:
REMOVE_GECKO.................:
REMOVE_USERS.................:
REMOVE_INSTALLERS............:
WINETRICKS_ITEMS.............: winxp
DLL_OVERRIDES................:
EXECUTABLE_PATH..............: winefile
EXECUTABLE_ARGUMENTS.........:
EXECUTABLE_VERSION...........: 1.0.0
BUNDLE_COPYRIGHT.............: © Your Company
BUNDLE_IDENTIFIER............: com.yourcompany.yourapp
BUNDLE_CATEGORYTYPE..........: public.app-category.business
SILENT.......................:
Hardware:
Hardware Overview:
Model Name: MacBook Air
Model Identifier: MacBookAir7,2
Processor Name: Dual-Core Intel Core i5
Processor Speed: 1.6 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 3 MB
Hyper-Threading Technology: Enabled
Memory: 4 GB
System Firmware Version: 476.0.0.0.0
OS Loader Version: 540.120.3~22
SMC Version (system): 2.27f2
Serial Number (system): C02QM1XWG941
Hardware UUID: EE27242F-C2B2-59E6-AAED-D598D1D61044
Provisioning UDID: EE27242F-C2B2-59E6-AAED-D598D1D61044
###BOTTLING### Create .app...
###BOTTLING### Enabling CoreAudio, Colors, Antialiasing and flat menus...
/var/folders/rz/rr6ytzhx5gl60f1v1tbc67xm0000gn/T/AppTranslocation/6CDA1855-FA78-4A2A-A976-2C1A539F36ED/d/WineBottler.app/Contents/Frameworks/WBottler.framework/Resources/bottler.sh: line 134: /Applications/Wine.app/Contents/Resources/bin/wine: Bad CPU type in executable
### LOG ### Command '/Applications/Wine.app/Contents/Resources/bin/wine regedit /tmp/reg.reg' returned status 126.
###ERROR### Command '/Applications/Wine.app/Contents/Resources/bin/wine regedit /tmp/reg.reg' returned status 126.
Task returned with status 1.
I've tried downloading the 'stable' version of WineBottler, download and redownload it to no avail - it always returns this message. I can't seem to find any way of getting around this or recently posted question (a lot are from 2010-15 and are outdated in their solutions)
Does anyone know what I can do to get around this and open it? It's driving me insane!!!
Thanks!
I'm just trying to setup Android studio and my emulator. However I can only ever run it once on pc start up after that if I shut down the emulator and try and launch it again I will get and error and the logs are saying there is another emulator running.
2022-07-04 14:18:50,723 [ 22398] WARN - Emulator: Pixel 4 API 31 - Another emualtor is still running, wait for a sec...
2022-07-04 14:18:51,737 [ 23412] ERROR - Emulator: Pixel 4 API 31 - Another emulator instance is running. Please close it or run all emulators with -read-only flag.
2022-07-04 14:18:51,738 [ 23413] ERROR - Emulator: Pixel 4 API 31 - Android Studio Chipmunk | 2021.2.1 Patch 1 Build #AI-212.5712.43.2112.8609683
2022-07-04 14:18:51,738 [ 23413] ERROR - Emulator: Pixel 4 API 31 - JDK: 11.0.12; VM: OpenJDK 64-Bit Server VM; Vendor: Oracle Corporation
2022-07-04 14:18:51,738 [ 23413] ERROR - Emulator: Pixel 4 API 31 - OS: Windows 10
2022-07-04 14:18:51,738 [ 23413] INFO - Emulator: Pixel 4 API 31 -
2022-07-04 14:18:51,748 [ 23423] INFO - Emulator: Pixel 4 API 31 - Android emulator version 31.2.10.0 (build_id 8420304) (CL:N/A)
2022-07-04 14:18:51,850 [ 23525] INFO - Emulator: Pixel 4 API 31 - Process finished with exit code 1
2022-07-04 14:18:51,850 [ 23525] ERROR - Emulator: Pixel 4 API 31 - Emulator terminated with exit code 1
java.lang.Throwable: Emulator terminated with exit code 1
However there are no lock files in the area it directs me to besides multiinstance.lock. which I can't delete because it's always in use.
There is no stop option in device manager to stop the device.
Kill-server doesn't make a difference.
Graphics is set to Automatic and can't be changed.
The only thing that fixes it is if I delete the emulator and rebuild it or restart my machine and deleting the emulator gives an error although it does remove it I assume this is because it can't delete multiinstance.lock. file.
if anyone can help I would appreciate it.
This is all on windows 11
Edit so I have found the issue, when I shutdown the emulator the process Qemu-system-x86_64.exe under Android studio does not shutdown. I don't know what this does or is but once I end the task I can once again launch the emulator. This is really annoying and I don't know what is causing it.
I need to work with Android studio, but Android virtual device is not starting.
I am getting this error:
22.04.2020
10:23 Emulator: emulator: ERROR: VkCommonOperations.cpp:496: Failed to create Vulkan instance.
10:23 Emulator: C:\Users\blatsabidze\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: error while loading state for instance 0x0 of device 'goldfish_pipe'
10:23 Emulator: deleteSnapshot: for default_boot
10:23 Emulator: Screenshot failed to find cb 0
10:23 Emulator: Process finished with exit code 0
I have hp prodesk 400 g3 mt with Intel HD Graphics 530, I5 6500
I there problem with my hardware?
Thanks
I recently changed my AVD Configuration > Graphics to "Software" (because of what's suggested in this answer). When I set it back to "Automatic", the error was gone.
Installing HAXM solved my problem.
https://github.com/intel/haxm/releases
I was using the emulator perfectly fine yesterday, but today I cannot open the emulator. I have read up on the android documentation and on other issues people have run into and I cannot find a solution. I have attempted to force the emulator to run through the terminal using both -gpu host and -gpu swiftshader_indirect and I was not successful. I have updated all SDK Platforms and SDK Tools with no success. I have deleted the emulator and installed a different emulator through the AVD manager to be certain the download was current. Here are also some of the trouble shooting commands I have tried with the error messages. I am not sure what to do now. If anyone has any advice, I would greatly appreciate it!
Here is what the Terminal shows:
emulator: WARNING: encryption is off
init: Could not find wglGetExtensionsString!
getGLES2ExtensionString: Could not find GLES 2.x config!
Failed to obtain GLES 2.x extensions string!
Could not initialize emulated framebuffer
emulator: WARNING: load_config.cpp:52: Could not parse verified boot config:
emulator: WARNING: load_config.cpp:54: 1:1: Invalid control characters encountered in text.
Failed to open /qemu.conf, err: 2
HAX is working and emulator runs in fast virt mode.
emulator: WARNING: EmulatorService.cpp:448: Cannot find certfile: C:\Users\iante.android\emulator-grpc.cer security will be disa
bled.
Started GRPC server at 127.0.0.1:8554
emulator: ERROR: OpenGLES emulation failed to initialize. Please consider the following troubleshooting steps:
Make sure your GPU drivers are up to date.
Erase and re-download the emulator ($ANDROID_SDK_ROOT/emulator).
Try software rendering: Go to Extended Controls > Settings > Advanced tab and change "OpenGL ES renderer (requires restart)" t
o "Swiftshader".
Or, run emulator from command line with "-gpu swiftshader_indirect". 4. Please file an issue to https://issuetracker.google.com/i
ssues?q=componentid:192727 and provide your complete CPU/GPU info plus OS and display setup.
crashhandler_die: fatal: OpenGLES emulation failed to initialize. Please consider the following troubleshooting steps:
Make sure your GPU drivers are up to date.
Erase and re-download the emulator ($ANDROID_SDK_ROOT/emulator).
Try software rendering: Go to Extended Controls > Settings > Advanced tab and change "OpenGL ES renderer (requires restart)" t
o "Swiftshader".
Or, run emulator from command line with "-gpu swiftshader_indirect". 4. Please file an issue to https://issuetracker.google.com/i
ssues?q=componentid:192727 and provide your complete CPU/GPU info plus OS and display setup.
And this is what the event log reports:
1:30 PM Emulator: init: Could not find wglGetExtensionsString!
1:30 PM Emulator: getGLES2ExtensionString: Could not find GLES 2.x config!
1:30 PM Emulator: Failed to obtain GLES 2.x extensions string!
1:30 PM Emulator: Could not initialize emulated framebuffer
1:30 PM Emulator: emulator: WARNING: load_config.cpp:52: Could not parse verified boot config:
1:30 PM Emulator: emulator: WARNING: load_config.cpp:54: 1:1: Invalid control characters encountered in text.
1:30 PM Emulator: emulator: WARNING: EmulatorService.cpp:448: Cannot find certfile: C:\Users\iante.android\emulator-grpc.cer security will be disabled.
1:30 PM Emulator: Started GRPC server at 127.0.0.1:8554
1:30 PM Emulator: emulator: ERROR: OpenGLES emulation failed to initialize. Please consider the following troubleshooting steps:
1:30 PM Emulator: crashhandler_die: fatal: OpenGLES emulation failed to initialize. Please consider the following troubleshooting steps:
1:30 PM Emulator:
1:30 PM Emulator: 1. Make sure your GPU drivers are up to date.
1:30 PM Emulator:
1:30 PM Emulator: 2. Erase and re-download the emulator ($ANDROID_SDK_ROOT/emulator).
1:30 PM Emulator:
1:30 PM Emulator: 3. Try software rendering: Go to Extended Controls > Settings > Advanced tab and change "OpenGL ES renderer (requires restart)" to "Swiftshader".
1:30 PM Emulator:
1:30 PM Emulator: Or, run emulator from command line with "-gpu swiftshader_indirect". 4. Please file an issue to https://issuetracker.google.com/issues?q=componentid:192727 and provide your complete CPU/GPU info plus OS and display setup.
1:30 PM Emulator:
1:30 PM Emulator: Process finished with exit code -1073741819 (0xC0000005)
EDIT:
When I restarted my computer, I saw there was an update available for Android Studio, so I updated it accordingly. When I ran the main activity as I have done so previously with my preferred AVD selected the emulator failed to start. Then I attempted to run it through the terminal with both -gpu host and -gpu swiftshader_indirect commands and it still did not work.
SOLUTION TO MY ISSUE:
1. Restart computer.
2. Open Android Studio and run the emulator through the terminal using emulator -avd Pixel_2_API_29 -gpu host.
3. Now run the main activity.
It is beyond me why all of a sudden now this is the work around to run on the emulator when I have previously simply clicked run main activity with my preferred AVD and it would run without problems.
I hope this helps if anyone runs into this issue. I do not think this a complete solution, but I can live with this for the time being.
this from GUI
Go to Extended Controls > Settings > Advanced tab and change "OpenGL ES renderer (requires restart)" to "Swiftshader". solution image
No such file or directory.
Launching app-Error while waiting for device: The emulator process for AVD was killed)