Android Emulator - Ubuntu 14.04 - Screen starting up Black - android

Hey I am using the Android SDK API level 21 (lollipop) on an Ubuntu 14.04 system.
I have installed QEMU and enabled hardware virtualization on my machine (KVM up running and registered), but whenever I try to start the AVD that I created using the SDK manager the instance never provides me with an android home screen, it just stays black.
CLI Command: emulator -avd heyholetsgo -debug-all -qemu -enable-kvm
Paste bin of logcat: http://pastebin.com/NYSZdvSP
Any help would be awesome!

Related

Why won't the Android emulator run on macOS 10.14 Mojave or earlier?

Hopefully someone can help me with the following problem:
I installed Android Studio (Artic Fox, 2020.3.1. patch 3) on an fairly old MBP (mid 2012, i7, 16G, NVIDIA GeForce GT 650M 1024 MB, Intel HD Graphics 4000 1536 MB, High Sierra 10.13.6)
When i want to run my first app i get this message:
Error while waiting for device: The emulator process for AVD Pixel_XL_API_30 has terminated.
I searched on Stackoverflow for solutions and i found the following:
Error while waiting for device: The emulator process for AVD Pixel_3a_API_30 has terminated
Emulator always crashes with error "Error While waiting for device: The emulator process for AVD has terminated"
But both solutions did't work for me.
Can someone point me to the right direction.
Thank you.
To summarize from Arthur Wilton's medium post:
Recent versions of the Android emulator won't run on macOS before 10.15 Catalina. The AVD Manager alert might read, "The emulator process for AVD Pixel_2_API_29 was killed."
Arthur encountered this problem with emulator version 30.5.3.0.
As of this writing, the current release is 31.1.4.0.
Launching the emulator from Android Studio doesn't reveal error info but in this case it's because the new emulator requires the IOUSBHost library that Apple introduced in macOS 10.15.
You can get error messages and other information from the Android emulator from the command line:
emulator -version
emulator -list-avds
emulator -avd Pixel_2_API_29 # try to run the named AVD
(The emulator is typically installed in ~/Library/Android/sdk/tools/emulator on macOS. It might not be on your shell path.)
An obvious solution is to upgrade to macOS 10.15 Catalina or later. If you can't do that (staying on Mojave in order to run 32-bit apps?), Arthur's workaround is to download Android Emulator 3.4.5 from https://dl.google.com/android/repository/emulator-darwin_x64-7140946.zip, install it by unzipping it into ~/Library/Android/sdk/emulator, then editing the <revision> info in package.xml to trick Android Studio into thinking you have the latest emulator installed. Otherwise it'll try to upgrade it.

Intel HAXM under a guest OS (Windows 10) running on Linux (KVM) crashes in Android emulator

Need help about Intel HAX which crashes under Windows 10 when running Windows 10 as a guest OS in a VM.
Some background information:
Hypervisor: KVM (virt-manager on ubuntu 16.10)
Guest operating system: Windows 10
Nested virtualization allowed
VT-X in Bios set
Intel HAX installed (latest version)
Android Studio (Version 6 as image for the Android emulator)
Problem:
When I run Android Studio and use Intel (x86) boot option to show up Android Emulator, Windows crashes completely. The error is a problem with a sys file of Intel HAX. Unfortunately I expected some wrong behavior of the Windows 10 running as VM with some nested virtualization components. In arm-mode I can start up the Android emulator but it's very slow. Is there a solution to use Google Intel (x86) Android image anyway? Some special key to start the emulator with?
The emulator is not really intended to be run in this configuration. You can try several things:
Run the emulator from the cmd line with the -no-accel flag.
Uninstall HAXM.
Note that performance will not be very good.
If possible try to run the emulator in the linux host, or under a linux guest.

Android Studio emulator doesn't work

I have just installed Android studio but when I try to run my app I get the following error message
emulator: ERROR: This AVD's configuration is missing a kernel file!!
emulator: ERROR: ANDROID_SDK_ROOT is undefined
I am using Ubuntu 12.04 LTS and I have an intel B960 ( I have read that this cpu doesn't support virtualization ).
I read many answers ( on stackoverflow too ), but it doesn't work:
I checked that $ANDROID_HOME/Sdk/system-images/android-MNC/default/armeabi-v7a exists and is not empty.
I installed ARM EABI v7a from the AVD Manager.
I installed KVM by using:
sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
But then I get this:
# kvm-ok
INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used
what other do I have to try ?
It looks like your emulator is trying to use a version of the SDK that you don't have installed. You could either change the SDK of the AVD, create a new AVD with a different SDK, or install the appropriate SDK, and make sure that your environment variable is set correctly.
But frankly, I wouldn't bother. Get the Genymotion emulator instead. The difference between it and the built-in emulator can not be overstated. The free version has everything you need for basic tests. There are other emulators available, and I've heard they're all better than Android Studio's, but I only have personal experience with Genymotion. I ran a test where I started the Android Emulator first, and then the Genymotion emulator, and I had booted the Genymotion emulator and completed my test suite long before the Android Emulator finished booting.

Cannot get HAX working for Android Emulator & the emulator appears to freeze

I am running OS-X 10.10.2 Yosemite on my MacBook Air and have installed the latest version of the Android Studio (1.2) and it has a default SDK already pre-configured.
I am trying to setup the Intel HAXM to speed up the emulation - I have also setup the Ionic & Cordova frameworks (as i'll be using this to develop mobile apps).
I am using the command to start the emulator:
sudo cordova emulate android
This begins the process and opens up an Android Virtual Device and the 'android' word appears on the screen.
In the Terminal I get the following:
Waiting for emulator....
emulator: The memory needed by this VM exceeds the driver limit
HAX is not working and emulator runs in emulation mode
Booting up emulator (this may take a while)...............................
This appears to 'stick' on this screen - I have installed the Intel HAXM (1.2 is installed) but it doesn't seem to have been correctly configured - can anyone suggest how to fix. I have changed the RAM used by HAXM to 1GB and 768MB with no joy..
Can anyone suggest any ideas?

Mac - Android Running Intel Version of Emulator

I have a Mac Book Pro - Intel i7. I am trying to create a AVD with the accelerated Intel Options but i get the following error every time i open the AVD.
Starting emulator for AVD 'AVD_for_Nexus_5_by_Google'
emulator: Failed to open the hax module
HAX is not working and emulator runs in emulation mode
emulator: emulator window was out of view and was recentered
AVD Settings
Such error: Windows Solution
Install the HAXM Driver by running "IntelHaxm.exe". It will be located in one of following locations.
..Android\android-sdk\extras\intel\Hardware_Accelerated_Execution_Manager
..adt-bundle-windows-x86_64\sdk\extras\intel\Hardware_Accelerated_Execution_Manager
Go to the directory of extras and run the installation of HAXM. It will solve your problem.
Such error: Mac Solution
Go to this link.
Choose the Intel HAXM installer package for your platform.
Extract the installer and follow installation instructions for your
platform.

Categories

Resources