Android Emulator Stuck With Black Screen - android

I'm just new with Android Development, and running the default blank project. I have Android Studio 2.1.2.
The problem is the emulator stuck with the black screen although HAXM works well:
"HAX is working and emulator runs in fast virt mode"
Most solutions suggest to uncheck "use host gpu" in AVD Manager, yet it seems this feature no longer appear in the new version of Android Studio.
I run macOS El Capitan.

After an update to Android Studio this weekend (maybe Gradle?), the AVD emulator (Mac) suddenly started showing a black screen when I ran my installed app APK. Sometimes it showed a blue screen. Sometimes the emulator even showed a page of installed app icons. Sometimes upside down. Sometimes upside down and reversed! That smelled like a graphics problem.
Thanks to audio in my app, I realized I could still activate buttons in my app by clicking on a specific location of the black screen. Definitely a graphics problem.
Based on other ideas that I read, I edited my AVD device config in the Emulated Performance section, to change Graphics from "Automatic" to "Software - GLES 2.0".
It worked for me on the emulators for Nexus 9 and Pixel XL on API 25.
This solution does not work on Play Store-enabled devices because the Graphics setting can't be changed. For example the Nexus 5X API 25.
Environment: Android Studio 3.0.1, Gradle 4.1

Increase the RAM size to 2.5GB in Advance settings of Emulator. Black Screen will be gone.
It worked for me

The reason why I got stuck with black screen in the emulator is that I needed to update my Android SDK Tools. Hope this could help someone get the same issue.

I believe the emulator was updated in studio 2.1.3, can you update and see if you have the exact problem?
download is here, 2nd set of links:
http://tools.android.com/

Selecting CPU/ABI with Intel Atom(x86_64) (when creat a emulator or editing a emulator) worked for me.

Related

Android emulators not showing correctly on Windows 10

On a Windows 10 machine, I'm trying to use emulators for Android development but run into the problem that the emulators do not show any characters:
This happens for all emulator types. The one showing in the screenshot is a Pixel 2 device. I have performed a reinstall of the video drivers, the emulator part of the Android SDK and the HAXM driver, but no success so far.
Are there more persons encountering this?
Ok, just found the cause of the problem:
Setting both options in this emulator settings screen to 'autodetect' & 'autoselect', and restarting the emulator solved the issue.

how to enable emulator in android studio?

I've been learning Android studio and android app development for a while now and I've been installing emulator .I recently installed the Nexus 5S API 24 but that showed some emulator errors
enter image description here
And then I thought the problem is with the API and so downloaded an emulator with lower API i.e; NEXUS 4 API 18 and that is also not running showing the same error. I thought the problem is with android Studio and hence I uninstalled the whole Android
Studio and then downloaded it again.But again the same errors show up.
I tried connecting my phone as an emulator instead of downloading an emulator.
But then, something showed up like in the picture below
enter image description here
Mine is a Gionee P7 phone .
Any help on this issue would be helpful .
Open the SDK Tools (Tools> SDK Manager> SDK Tools) to check if you have installed the Intel X86 Accelerator, if not, check the box and apply, then restart your AS, it should work.
Still recommend you to use real device to run your application, since the emulator really cost a lot of memory resources.

Android Studio Emulator Screen is "Scratched" and distored

So here's the issue:
Regardless of which Android device I choose, my emulator always looks like the screen's been scratched. When I try to run my app, the screen then becomes so distorted and scratched that it's unrecognizable. I have tried, what I think to be, everything including: deleting all android studio files and redownloading the application and wiping data of each emulator. Regardless of what I do, the screen still ends up looking like that.
Here's the details of my emulator:
I'm using a OSX Yosemite 10.10.5.
How do I fix this?
I had same issue and finally just solved it
try to install Oreo system image (API 27) and use it to create new AVD insted of API 28
I had the same issue with Pie in the emulator. I went to the AVD Manager, clicked Edit for the Pie AVD, clicked advanced settings, found the Graphics and changed it to 'Software'. Then it worked!
Well that is strange indeed. Does it happen with emulators from all API levels?
Have you updated your Android SDK tools to version 27 already? Also, check out the Android Blog post with important SDK tools release notes to help you with the emulator setup. Emulator installation is becoming more and more cumbersome in each SDK release and API level, now they even depend on your type of processor... anyway, if you follow the instructions it should eventually work fine.

Android Studio's Emulator doesn't open

i'm using Android Studio 2.3.3, and I'm having a issue. The emulator doesn't open. No signal, nothing. It just don't show me anything. When I try to open, it just load the bar in screen's bottom and disappears. Don't open any screen, any window, nothing.
I already tried to delete all SDK and reinstall, but didn't work.
Can anybody help me?
(I was using Android Studio 3.0 Canary 5 before it, if it helps).
EDIT:
I'm using Windows 10 64bit, 8gb RAM, Intel HD graphics 520, Intel Core
i5-6200U
I already had delete my AVDs and recreated. I also uninstalled and
reinstalled all the SDK, including all the tools, emulator and
anything else (as showed in the pic).
I want to run x86.
sdk
avd
Create a new simulator and see if it works.
I had the same Issue... maybe it happened after updating some build tools ..
It worked For me.

Android Emulator won't starting up

I just installed Intel HAXM and updated my Android SDK Tools to revision 24.1.2 successfully. Then I restarted my PC, and ran the emulator. Unfortunately, I my emulator won't starting up, always stuck. Waiting for ~1 hour, the emulator still getting stuck. Sometimes the screen was black, didn't show anything even the ANDROID logo while emulator was booting (full of black color). My screenshot:
The second problem is, as you can see in the figure, this is an abnormal behavior. There's no title bar, because it hides on the top of my desktop. So I can't move the emulator window to the center of my desktop.
From the Console, it seems that Android Studio is waiting for the emulator to finish its start up:
What have I tried:
Restarted my PC.
Followed this answer.
Check and uncheck Use host GPU option in AVD.
Re-build my emulator in AVD.
Closed the emulator and ran it again.
Changed CPU/ABI to ARM and Intel Atom x86 in AVD.
Can you help me to solve these problems?
Have you tried with a different\more recent Android version?
I suggest you to switch to Genymotion.
It's free for personal use and it very better than AVD: it's faster, you can drag and drop files and much more.
I asked my mom to pray for me to solve these problems, and I found the solution then, hehe :P
So these problems happened because of the skin of emulator I selected in AVD was WQVGA432. Then I changed (edited) the emulator's skin in AVD to WQVGA400 and WQVGA800 to test the result, and it really works for both of them. I think, the only skin which has broken is WQVGA432. If you also had these problems, I suggest you to never select WQVGA432 skin or try another skins.
Now, I can move the emulator window normally and debug my app.
Try updating Android Studio and re-download the image file from SDK

Categories

Resources