Android Emulator black screen on Phenom II X4 965 - android

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.

Related

The emulator process for AVD was killed

I just installed Android Studio and created a new AVD. However whenever I try to run it, I get an error message saying the process was killed, and the emulator will close. When running the emulator from cmd I get this message. What is going wrong?
emulator: Android emulator version 30.5.3.0 (build_id 7196367) (CL:N/A)
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.
handleCpuAcceleration: feature check for hvf
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.
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:301: Started GRPC server at 127.0.0.1:8554, security: Local
VCPU shutdown request
deleteSnapshot: for default_boot
Make sure you have enough space in c: drive - Minimum has 20GB free space
If you have already created AVD then go to following location in your windows machine, from command line enter "emulator -list-avds".
C:\Users\username\AppData\Local\Android\Sdk\emulator>emulator -list-avds
Pixel_2_API_29
Enter emulator #Pixel_2_API_29
C:\Users\username\AppData\Local\Android\Sdk\emulator #Pixel_2_API_29
You can see emulator launching.
It worked for me - other result found in internet didn't worked for me.

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

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

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.

Emulator: emulator: ERROR: x86_64 emulation currently requires hardware acceleration

When I try to run my Hello application , the emulator gives this message. What is the sulotion?
This is the emulator view unfortunately.
Error
31/08/2018
16:32 Gradle sync started
16:32 Project setup started
16:32 Gradle sync finished in 3s 187ms (from cached state)
16:34 IDE and Plugin Updates: Android Studio is ready to update.
16:35 * daemon not running; starting now at tcp:5037
16:35 * daemon started successfully
16:35 Executing tasks: [:app:assembleDebug]
16:35 Emulator: emulator: ERROR: x86_64 emulation currently requires
hardware acceleration!
16:35 Emulator: Process finished with exit code 1
16:35 Gradle build finished in 27s 847ms
Boot into bios and enable VTX. This allows the emulator to use hardware virtualization.
As can be seen in your error-output, running an emulator x86_64 emulation currently requires hardware acceleration!.
What does this error mean/where does it come from?
Emulations run in a virtualized thread of your CPU. A CPU normaly got several physical cores (e.g. in QuadCore CPUs there are 4 physical cores). Virtualization furthermore subdivides these cores into multiple "virtual" cores, meaning it simulates more phyisical cores. You can read more information elsewhere on the internet. Here an extract from geek-university which sums it up pretty short to the point:
CPU virtualization involves a single CPU acting as if it were multiple
separate CPUs. The most common reason for doing this is to run multiple different operating systems on one machine. CPU
virtualization emphasizes performance and runs directly on the
available CPUs whenever possible. The underlying physical resources
are used whenever possible and the virtualization layer runs
instructions only as needed to make virtual machines operate as if
they were running directly on a physical machine.
When many virtual machines are running [...], those [...]
might compete for CPU resources. [...].
Emulators need this environment due to the highlighted reason: Its emulating an entire other system - In your case an Android smartphone.
Solution
Regarding you have an Intel-CPU (AMD should be somehow analog), this should solve your problem.
As general note (this seems to be solved in OPs question since its not in the error log): Make sure Intel x86 Emulator Accelerator (HAXM installer) is installed in your Android SDK (check under Settings -> Appearance & Behavior -> System Settings -> Android SDK -> SDK Tools)
Also as note if somebody wants to check if he has OPs problem coming from a more generic error: Run this command in the command line (needs Android SDK Command-line Tools (latest) to be installed in your SDK):
C:\Android\YourApp> C:\Users\{Username}\AppData\Local\Android\Sdk\emulator\emulator.exe -avd YourAVDName -netspeed full -netdelay none
# The First is your path to your SDKs emulator.exe; use the path you installed the SDK in
# -avd needs a name of an existing AVD you set up in the AVD Manager in Android Studio.
The possible outcome is (if HAXM is already installed and hardware acceleration is your poblem):
emulator: Android emulator version 30.5.3.0 (build_id 7196367)
(CL:N/A) handleCpuAcceleration: feature check for hvf emulator: ERROR:
x86_64 emulation currently requires hardware acceleration! CPU
acceleration status: VT feature disabled in BIOS/UEFI More info on
configuring VM acceleration on Windows:
https://developer.android.com/studio/run/emulator-acceleration#vm-windows
General information on acceleration:
https://developer.android.com/studio/run/emulator-acceleration.
Note that I used an AVD with x86_64 here.
To solve the error you have to restart your PC and enter your BIOS. Search for you CPU-preferences (can often be found in an Advanced-options tab). Somewhere there you'll find a setting called Intel Virtualization Technology which presumably is disabled. enable and restart your computer.
Now your AVD should work fine.

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.

Categories

Resources