Android emulator status bar rendering messed up after Mac crash - android

I was adding a Google Pixel 3 XL emulator to the list of my Virtual Devices in Android Studio. During the boot my MacOS froze and I had to hard reset. After restarting I booted the emulators and all of them seem to have some rendering issues with the status bar. One also crashed on startup with some OpenGL error. I tried deleting and recreating them with no success.
On the left is a Nexus 5 device with a status bar that seems to have double height. On the right is the Google Pixel 3 XL with some weird transparency and some microchips visible on the right side of the notch.
I am looking for a way to fix this without getting into full Android Studio/SDK cleanup. Even if I did that I'm not sure that would help.

I solved it by updating Android Studio to 3.6.1 and not importing previous settings (this step may not be needed). I then re-created the AVD (this may not be needed either).

For anyone still looking for a fix:
download this image
Locate the image assets folder for the Pixel 3 XL emulator (.\Android\sdk\skins\pixel_3_xl)
Replace round_corners.webp with the image you downloaded.
I found the solution and a short explanation of the issue HERE.

Related

when i launch my android studio emulator in tool window, its all fine, but when i launch it in standalone app, the emulator screen is too small

this image shows how the emulator looks
i tried reinstalling everything but it still didnt work
i tried to change compatibility of qemu x86 to system instead of application but the emulator resolution was so bad so i deleted all SDK files and redownloaded everything again to another folder (E) instead of (C) and the emulator still doesnt work properly as it used to.
i think the problem started when i deleted some folders in C:\Users\myuser\.android\avd\
i deleted all the emulators from there because they were taking too much space, i didnt have storage, so i deleted all then i reinstalled the one that i liked and then i started having this problem.
btw zooming in doesnt work either, ive tried almost everything, nothing made it work
When creating new Virtual deice you can see Hardware resolution:
In AVD Configure window in AndroidStudio you can see your emulator hardware resolution:
3: You can resize emulator window from corners:

Height of the status bar increased weirdly inside the android emulator (AVD)

For some reason the height of the status bar in android emulator is increased. It's not limited to any app though. Attaching the screenshot below:
I have tried cold boot and all sorts of stuff. How can I fix this issue?
The last resort I think of is remove this emulator and create a new one. But my new emulator also starts facing this issue. I am not able to know the reason why this starts happening.
Faced this issue and tried a solution. It can be fixed by cold booting the emulator.
To do it:
Close your emulator.
Open Device Manager and click on the down arrow indicating more options.
Click on Cold boot now.
Let it start, the increased height issue of the TopBar will be fixed.
I tried looking for an answer, but then I just created a new emulator and deleted the old one. Works great and quick fix
I also encountered the same situation where in my actual device the status bar height is all normal but in the emulator the status bar height is bigger than expected.
It is definitely a huge bug.
I encountered this bug in following AVD :
Pixel 4 API 30/33
Try to avoid Pixel 4, I would suggest you to use Pixel 3/3a
I hope folks at Android fix this bug quickly.
Its completely normal. Its just a glith by the emulator because running emulator is a bit for vertualization and HAMX complexity thing to solve. Just Create another instance of OS with different android version like OREO or Nougat. It might solve this error.

Android Virtual Devices (AVD) resolution not correct after downloading Android 5.1.1 for SDK

The story is that I developed an Android program with Android 4.4.2. But some problems was found after installing the program to a device with Android 5.1.1. So I tried to download Android 5.1.1 for my SDK to debug the problem. Then the AVD I kept on using becomes like a mess no matter I changed to different configuration (see picture 1). My AVD configuration is as picture 2.
Hope someone could help... Thank you so much!
Picture 1
Picture 2
Got a temporary way to solve it and don't know if it is correct.
Set the skin to "no skin".
There is another problem happened now. The control bar of that window shows out of the screen. It makes the window cannot be moved. Anyway, I can continue my development job in this way...

android studio emulator loading but not working

I have used Eclipse to write apps for android multiple times without issue but I am now trying the new Android Studio which I like but here is my problem.
When I run the app I pick my AVD and then tell it to start. The emulator starts loading and then says paired. Then it starts telling me to swipe up and left and right to display and remove cards. Then it says to put hand on screen to dim the screen, ok well I'm on a MacBook Pro so that don't work I swipe to get past that part sometime I can others I can't. Next it says to touch the clock and say some words which also can't do on my Mac, and that is where the emulator stay it never goes to a home screen and it does this no matter what AVD I choose. How can I get the Emulator to just plain open to the home screen like it should.
Thanks for any help.
In your AVD Manager, edit your AVD and make sure your Target is "Android L" and not "Android X.XW". The "W" stands for "wear" and that is causing your issue.
Alright I figured it out. I remember having a similar problem recently when I was taking an android development class for college using eclipse and sure enough that was it.
So here was the solution eclipse gave same problem. for some reason if you have caught exemptions such as hard coding a string etc. the emulator will not run till you ignore these exemptions or fix every last ! mark in your code. Once you do this the emulator will load and run properly.
I also had the same problem with my AVD. The Android Emulator window just used to pop us and the green bars flowed infinitely. After lots of trial and error I arrived at a solution for my problem. the problem was with the Heap size and the RAM size.
Initially the default heap size was 128 MB and RAM was 1563 , I just changed the heap size to 512 MB and reduced the RAM size( high RAM was making my PC run slow) also I enabled hardware acceleration. And Yipeee, it worked.

emulator does not open up home screen

My emulator does not open up.
I have seen other questions in stackoverflow similar to my question, but I didn't get any help. Also I replaced my 1GB RAM with 2GB. But its still the same. The emulator does not show the home screen. I am using P4 3.0 GHZ processor. I also tried assigning 1024 mib to sd for a avd. But it is still the same.
I am using Android SDK 4.0 and Eclipse Juno.
Just wait, your machine isn't very much emulator friendly.
It only takes a bit longer the first time you run it.
it is a same problem that i have got.
but i solved it by,when i first start my emulator from AVD then i do not change it's scale,
then when it start as its default scale property then i close it and start one more time and scale it as i need it than it will work perfectly.
I tried a lot of options to get the emulator up and running. Cleaned/re-started/adb killstart and all this unfortunately did not work for me. I was trying with API level 20 (Android 4.4W ).
But, nothing helped. Hence i tried with API 17/18/19 ( Android 4.2,4.3 etc. ). Finally 4.3.1 and API 18 worked for me and my emulator started fine.

Categories

Resources