I am a newbie of Android programming, and I am using the latest version of Android Studio on a Mac.
My problem is with the emulator, in particular, the tablet emulators (Pixel C, Nexus 9, and 10) which is giving me a hard time understanding why any click I do on the emulator display is displaced up (on the y axis) a great number of pixels. For example, if I click the Chrome icon present on the home screen, in reality, the emulator is taking the click about 100-150 pixels up that location! Why's that?
I have no problems with all phone emulators. This issue appears only with tablets. Any ideas?
Thanks in advance for any possible solutions to this problem.
All the best,
Fab.
Ok, I solved this problem by unchecking the option Launch in a tool window" inside Preferences > Tools > Emulator.
It appears that making the emulator run inside a window is buggy and gives this click-location issue.
Related
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.
Android emulator Samsung Galaxy S7 Edge
Hello, i have used this fantastic website many times over the years to find answers others have already provided. This problem i have not been able to find an answer to anywhere. As the title describes, every time i create a new Android Virtual Device using Android Emulator 2.0 within Android Studio 2.3.3 it displays the screen in the top left corner of the window. I have no idea why this is happening, i have tried uninstalling and re-installing HAXM. I have tried creating multiple different devices with different specifications and i always get the same problem. Does anyone know how i can get the screen into the correct position and the correct size? I'm operating on Windows 10 Cheers,
James
Solved, The external graphics(NVIDIA GTX1050) card in my device was interfering with Android Virtual Device.
Fix - When creating a new Android Virtual Device in the Verify Configuration window set Emulated Performance - Graphics: to Software - GLES 2.0
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...
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.
Android 4 ICS is supposed to have virtual menu, home and back buttons at the bottom. I don't see this in the emulator. Do I have to do something to enable that?
today Google solve this problem, you need to update the emulator to the rev16 version and Android ics system image 2.
Xavier Ducrohet post this on Google+ today.
Try to set the AVD resolution to WXGA720. Read about it somewhere and it and now the AVD shows the nav buttons.