emulator cannot start up - android

I'm just install HAXM installer and Android SDK Tools and finally my AVD can launch. But the problem is it stucks on the android. I've been waiting for 20 minutes but it still not yet start up..
emulator: device fd:664 HAXM is working and emulator runs in fast virt
mode creating window 61 83 462 820 emulator: UpdateCheck: current
version '24.4.1', last version '24.4.1'
Device Nexus_5_API_23_x86 [emulator-5554] is online, waiting for
processes to start up.. Device Nexus_5_API_23_x86 [emulator-5554] is
online, waiting for processes to start up.. Device Nexus_5_API_23_x86
[emulator-5554] is online, waiting for processes to start up.. Device
connected: emulator-5554 Device connected: emulator-5554
Is it normal? How long it needs for set up? Have I missed install anything? Thanks

Increase the memory on your emulator.
1.In android studio go to Tools--->AVD Manager
2. then click the edit button (green crayon) and click on "show advanced settings".

Just to add to j2emanue's answer, if you're using command line to start the emulator, you can specify the -memory option. From the emulator -help command:
-memory <size> : physical RAM size in MBs
So you can:
emulator -avd <avd_name> -memory 1024

Related

HAXM installation issues: VS2107+Xamarin

In the SDK Manager, I see that HAXM installer isn't compatible with Windows for some reason. Refer screenshot:
I am using Xamarin with VS2017 Enterprise. I have disabled Secure Boot from my BIOS settings and Virtualization is enabled. It's a W530 laptop, with 16 gig RAM and 1 TB HDD on Windows 10. I downloaded haxm-windows_v6_2_1.zip (6.2.1) from here: https://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-intel-haxm and when I run intelhaxm-android.exe, it throw this error:
The emulator is an x86 phone and not an ARM one, as, apparently, the former is 10 times more faster (It throws that message). The skeletal project build with no issues
so I know the Android APIs are all correctly set with the target framework version. So when I select my custom emulator (x86 - API 25), in seconds, a deployment error is thrown:
The Output for Build shows this:
1>Starting deploy x86_API25 ...
1>Starting emulator x86_API25 ...
1>C:\PROGRA~2\Android\ANDROI~1\tools\emulator.EXE -partition-size 512 -no-boot-anim -avd x86_API25 -prop monodroid.avdname=x86_API25
1>emulator: ERROR: x86 emulation currently requires hardware acceleration!
1>Please ensure Intel HAXM is properly installed and usable.
1>CPU acceleration status: Please disable Hyper-V before using the Android Emulator. Start a command prompt as Administrator, run 'bcdedit /set hypervisorlaunchtype off', reboot.
1>Emulator x86_API25 cannot be started.
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
And yes, Hyper-V IS disabled! It was done from the Command Line in Admin mode!
I have done what ever I did only after scanning the entire Stack Overflow site (and couple of other websites) so yes, I have done my homework.
Please help!
Turn Windows feature on or off:

Emulator failed to start

When i try to launch an emulator based on system image Android 4.4 armeabi-v7a (because my system does not support virtualization) in Android Studio, it starts and fades away within 2-3 seconds and the status bar shows "Starting device".
When i try to start it through cmd by going to the path "C:\Users\USER_NAME\AppData\Local\Android\sdk\tools" and using the command "emulator -avd AVD_NAME -memory 768 -no-accel -gpu on" the following error comes: Error while starting emulator
Please help.
Have you try to open your bios setting and enable virtualization there?
If virtualization is not in pc then you can install zenymotion in the system

Android Studio 2.2 blank AVD & VCPU Shutdown request

I am using Android Studio 2.2 and when I try to do a trial run of hello world program, I am getting AVD with blank screen. Also In-between that the VCPU shutdown request coming in the log.I am not getting any android welcome screen after a long time (More Than 30 minutes). There is no issue with RAM performance, I already have 16gb. All the components are installed correctly from SDK. Can you help me to solve this issue? Please Find the Image below for Blank AVD AS2.2
Error Log:
C:\Users\hp\AppData\Local\Android\Sdk\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5_API_24
Hax is enabled
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
emulator: Listening for console connections on port: 5554
emulator: Serial number of this emulator (for ADB): emulator-5554
emulator: emulator window was out of view and was recentered
VCPU shutdown request
EAX=00748cea EBX=3ffadb60 ECX=00000000 EDX=00000000
VCPU shutdown request
UPDATE AFTER CHECKING WITH HAXM 6.0.5
Adding: Intel HAXM 6.0.5 not compatible with windows screenshot:
Intel HAXM 6.0.5 not compatible with windows screenshot
Please use 6.0.5 HAXM it solved for me. I have i7 and similar issues with 6.0.4
I just wanted to share that I am experiencing the same problem as well with my new Windows 10 computer. How do you add the switch -accel off -verbose to the x86/x64 image? Running an ARM image is extremely slow.
Dealing with the same issue. Something to do with haxm on 7th gen processors as the arm image works.
UPDATE: Confirmed to be a HAXM issue on Kaby Lake, nothing we can do until we get an HAXM update from Intel. Best workaround at this stage is to use the physical device or create a Linux partition. I haven't tested genymotion on a 7th gen processor...can anybody confirm if that works?

Error on launching AVD in Android Studio, ERROR says eglMakeCurrent failed

emulator: device fd:668
HAX is working and emulator runs in fast virt mode
creating window 0 0 240 400
emulator: emulator window was out of view and was recentered
eglMakeCurrent failed
What is "eglMakeCurrent failed"?
TRIED
to set the window.x = 0 window.y = 0 ...
but window.x=322 keeps coming back... I tried changing the resolution....plus can't even move the emulator..tried ALT+SPACE and 'move'...but can't move it.. Although the emulator can be started –
In AVD Manager, change Boot option to Cold Boot. Then boot up the virtual device. After that you can change it back to Quick Boot. This usually happens if you modify something and the changes don't apply correctly.
Explicative Image(I hope)
In AVD Manager, change Emulated Performance - Graphics to Software - GLES 2.0
I ran into this after setting up multiple monitors using different graphics cards.
Please try:
adb kill-server
adb start-server
emulator -avd <avd_name> -no-snapshot-load
It works 100% if you have setup environment variable and PATH correctly.

App does not load on Android Emulator

I am running my simplest Activity App in Emulator which I created in IntelliJ. I invoked Emulator from the IDEA IDE, it does show emulator in locked screen format. After unlocking I don't find icon of my application. Where am I doing wrong? or how can I run it manually on Emulator?
Emulator shows following message on Console:
Waiting for device.
/usr/local/Cellar/android-sdk/22.6/tools/emulator -avd myavd -netspeed full -netdelay none -wipe-data
emulator: ERROR: Could not load OpenGLES emulation library: dlopen(lib64OpenglRender.dylib, 1): image not found
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
HAX is working and emulator runs in fast virt mode
Device connected: emulator-5554
Emulator Snapshot attached. As you see. I don't find my app here
If you are using windows:
Go to cmd, cd into the folder containing the platform-tools.
Then -> adb install myapp.apk . This command installs the app.
If you are using GenyMotion emulator. Just grag and drop your apk into the emulator.
If the emulator is not in sync with the ADB,which is responsible for the connection. Just restart the ADB like:
adb kill-server
adb start-server

Categories

Resources