First time trying Android Studio. Emulator won't start - Linux - android

OS: Linux Mint 19.1
Android Studio: android-studio-ide-191.6010548-linux
CPU: AMD Phenom(tm) II X4 965 Processor
RAM: 16GB
API Level: 22 ; Android: 5.1
I am following this guide: https://codelabs.developers.google.com/codelabs/build-your-first-android-app/#2
I've reached step 5 but the emulator doesn't start.
I have tried using both Hardware and Software GPU.
I have set hw.audioInput and hw.gps to no
Running the emulator from ~/Android/Sdk/tools using the command ./emulator -avd 7_WSVGA_Tablet_API_22 -netspeed full -netdelay none returns the following:
emulator: WARNING: encryption is off
emulator: WARNING: Host CPU is missing the following feature(s) required for x86 emulation: SSSE3
Hardware-accelerated emulation may not work properly!
emulator: WARNING: Not all modern X86 virtualization features supported, which introduces problems with slowdown when running Android on multicore vCPUs. Setting AVD to run with 1 vCPU core only.
emulator: INFO: QtLogger.cpp:68: Warning: QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled ((null):0, (null))
host doesn't support requested feature: CPUID.01H:ECX.ssse3 [bit 9]
checkValid: hw configs not eq
So a bunch of warnings that I can't clear.
What do you think ?

Make sure HW virtualization support is enabled in bios. Also look here: https://developer.android.com/studio/run/emulator-acceleration.html

Related

Android Emulator black screen on Phenom II X4 965

I can not start the android emulator on my machine. I can see the phone "frame" but the content is black.
I also tried to start the emulator from command line and I get the following error messages:
./emulator -avd Pixel_3_Edited_API_28
emulator: Android emulator version 30.5.5.0 (build_id 7285888) (CL:N/A)
handleCpuAcceleration: feature check for hvf
emulator: WARNING: Host CPU is missing the following feature(s) required for x86 emulation: SSSE3
Hardware-accelerated emulation may not work properly!
emulator: WARNING: Not all modern X86 virtualization features supported, which introduces problems with slowdown when running Android on multicore vCPUs. Setting AVD to run with 1 vCPU core only.
cannot add library /home/ps/Android/Sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed
added library /home/ps/Android/Sdk/emulator/lib64/vulkan/libvulkan.so
cannot add library /home/ps/Android/Sdk/emulator/lib64/vulkan/libvulkan.so.1: full
host doesn't support requested feature: CPUID.01H:ECX.ssse3 [bit 9]
host doesn't support requested feature: CPUID.01H:ECX.sse4.1 [bit 19]
host doesn't support requested feature: CPUID.01H:ECX.sse4.2 [bit 20]
qemu-system-x86_64: can't open backing store /home/ps/.android/avd/Pixel_3_Edited_API_28.avd/snapshots/default_boot/ram.img for guest RAM: Permission denied
qemu-system-x86_64: falling back to regular RAM allocation.
emulator: INFO: GrpcServices.cpp:301: Started GRPC server at 127.0.0.1:8554, security: Local
Is my computer to old? Do I need a newer CPU?
System
CPU: AMD Phenom II X4 965
Linux Mint 19.3
Yes your computer is too old, see
emulator: WARNING: Host CPU is missing the following feature(s) required for x86 emulation: SSSE3
even you are lucky enough to be able to start it, it would not be in usable performance. You should either buy a new computer or use a cloud service to do it. Any recent i5 desktop with like 8gb ram should have given you usable performance.

Emulator: Warning: QXcbIntegration

When i run Android Emulator from Android Studio, i get this Warning:
Emulator: Warning: QXcbIntegration: Cannot create platform
OpenGL context, neither GLX nor EGL are enabled ((null):0, (null))
This warning didn't appear before. What this warning is for and should i ignore it or not? What is the Fix for it?
With hw.gpu.mode = host it seems to run with hardware OpenGLES emulation:
emulator: CPU Acceleration: working
emulator: CPU Acceleration status: KVM (version 12) is installed and usable.
Warning: QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled ((null):0, (null))
...
emulator: GPU emulation enabled using 'host' mode
emulator: Initializing hardware OpenGLES emulation support
emulator: VERBOSE: emulator-qt-window.cpp:2824: setUIMultiDisplay id 0 0 0 1080 2220 add
Either wait until the next version of the emulator will be released - or downgrade < 29.2.1.

Android emulator on AMD Phenom X4 965 BE or some replacement

i've got a box with CPU like in title. I would like to run android emulator on it but when i do i've got this error and screen is black in emulator:
Emulator: Warning: Quick Boot / Snapshots not supported on this
machine. A CPU with EPT + UG features is currently needed. We will
address this in a future release.
Emulator: emulator: WARNING: Host CPU is missing the following
feature(s) required for x86 emulation: SSSE3
Emulator: Hardware-accelerated emulation may not work properly!
I know that google updated their emulator. Hypervision and hyper-v is enabled.
And i have installed proper versions of both AS and emulator.
If i can't run emulator with this CPU are there any alternatives for google emulator? Genymotion has free version for personal use (earning money is not allowed). Microsoft android emulator is outdated.
Edit:
I just discovered that i can run KitKat emulator (google) but Lollipop doesn't start.

Cordova black screen cold boot

I am trying to run "cordova emulate android" on the default hello cordova project, however when I run it I get an alert saying "cold boot: snapshot doesn't exist", and the emulator screen simply stays black. Here is the terminal output:
BUILD SUCCESSFUL in 3s
47 actionable tasks: 1 executed, 46 up-to-date
Built the following apk(s):
/home/marc/Documents/Tests/cordova/hello/platforms/android/app/build/outputs/apk/debug/app-debug.apk
ANDROID_HOME=/home/marc/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
No emulator specified, defaulting to test
Waiting for emulator to start...
emulator: Requested console port 5584: Inferring adb port 5585.
emulator: WARNING: Host CPU is missing the following feature(s) required for x86 emulation: SSSE3
Hardware-accelerated emulation may not work properly!
emulator: WARNING: Not all modern X86 virtualization features supported, which introduces problems with slowdown when running Android on multicore vCPUs. Setting AVD to run with 1 vCPU core only.
warning: host doesn't support requested feature: CPUID.01H:ECX.ssse3 [bit 9]
emulator: WARNING: Not saving state: emulator hasn't finished booting.
How can I fix this?
P.S. I am using andorid api version 26 on Ubuntu 16.04.3 LTS
I answered a question similar to this here. Quickly: The issue might be your CPU hardware. Certain AVD Google API levels do not run well on CPUs that do not support certain features; in your case 'SSSE3'. Try an older AVD Google API level <= 20.

emulator: WARNING: Classic qemu does not support SMP

Why am I getting the Classic qemu warning?
Android Studio Version 2.1.2 (from stable channel)
Android 4.3.1 (API 18)
Emulator Version: I don't know
Android SDK Tools: 25.1.7
Host Operating System: Windows 7 Ultimate 64-bit
Processor : AMD A8-5600K APU with Randeon(tm) HD Graphics 3.60 GHz
This is an example of what appears when I run an emulator:
C:\Users\soda\AppData\Local\Android\Sdk\tools\emulator.exe -netdelay none -netspeed full -avd gaby_API_18
emulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored.
emulator: warning: opening audio input failed
I get the same behaviour when I run the API 18 image. I guess this image only runs under classic QEMU rather than QEMU2. So far it seems to me that only API 19 and higher use QEMU2.
It seems that something is setting "hw.cpu.ncore" to 2 in hardware-qemu.ini for the emulator image. You might be able to remove the warning by removing that line from the file. However, I don't think the warning is doing much harm.

Categories

Resources