1

I'm having some issues managing/running AVDs from the commandline. Whatever device I create/run seems to get cropped and displayed wrongly (see below). I've tried various devices and settings (-scale) and have looked at the avd config files (they just seem to get reset after I make a change).

How can I fix this?

System Info:

  • Windows 10;
  • Latest Android SDK (manual install - no Android Studio);
  • Android Version: 23

emulator screenshot

0

Make sure you select the right device resolution and screen size

There are a variety of options for example:

  • dpi (1440 x 2560)
  • xxhdpi (1080 x 1920)
  • tvdpi (800 x1280)
  • xhdpi (1080 x1920)

In my setup (API 23)

Here is my configuration:

  • 5 inch screen size
  • Density 480
  • Monitor dpi 96

Can you check if these values correct you problem, I suggest you try from GUI this time:

See image:

a

To start from GUI go to the folder where android sdk was extracted for example:

C:\Users\Test\Android\android-sdk\AVD Manager.exe
  • I don't think the GUI is available in the sdk-only version, but I'll have a look, thanks. – Ben Catterall Apr 26 '17 at 12:40
  • Also in GUI toggle the option: Scale to real size, you need to disable it, if it was enabled – xavier_fakerat Apr 26 '17 at 12:51
  • Did you manage to resolve this matter? – xavier_fakerat May 7 '17 at 17:42
  • Yeah, I caved and used the Android Studio installer. Works fine now, but seems odd that the stand alone SDK doesn't... I'll give you the answer, but it's gonna need more investigation I think. – Ben Catterall May 7 '17 at 19:54
  • Seems strange, but be welcome to answer your own question when you find the solution. If I get something I will update you too. – xavier_fakerat May 7 '17 at 19:57

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.