Android : How to Create Android Emulator for Nexus

2019-01-13 20:37发布

问题:

I am trying to create the android emulator for Nexus 10 using latest ADT(21) and SDK tools. I have the following configuration for the Nexus 10 AVD:

Screen Size - 10 inches 
Resolution - 2560 X 1600 
Screen Size - xlarge Screen Density - Xhdpi 
Screen ratio - long
RAM - 1024

Let me know if this configuration is wrong. After creating the above Configuration I was able to create the AVD but couldn't load it. It only shows a black screen. What could be the problem here?

I am Using Ubuntu 11.10.

回答1:

I had the same issue. You can do one thing,

1) When you create AVD, make sure Use Host GPU option is checked.

It worked for me, in my Mac OS X Mountain Lion 10.8.2, and eclipse juno.

EDIT : Sorry folks for the confusion. There is no Google Nexus 10 skin (at the time of writing this). What you see in the image is a Nexus 10 equalant I created using Device Definition (AVD manager 2nd tab) feature of eclipse. It is just I named it as Nexus 10 and it is not default google emulator.



回答2:

I think the monitor resolution is more important than the hardware of your computer. I have a PC i7 & 16GB RAM under Windows 7, with two DELL monitor 1920x1080 and it is imposible to run Nexus 10 emulator. This computer runs Nexus 7 emulator perfectly.

But my less powerfull iMac i5 & 8 GB RAM under OSX Mountain Lion, runs perfectly Nexus 10 AVD.

I have tried with/without use host gpu option, and only work when it is checked.

I have tried to emulate other devices like Samsung Galaxy S4 and it happens the same!

By the way, it is recomended to specify low value RAM and SD Card values for performance (512MB & 16-96MB).



回答3:

I had the same issue (have, actually). It is quite simple, the resolution and the screen density are just too high for your monitor (on that screen size), so it cannot display it. - I am sure your emulator runs perfectly on other configurations



回答4:

This is the correct configuration for an Nexus 10 Android Virtual Device:

Your screensize and density was wrong.

Screen Size - 10.1 inches
Resolution - 2560x1600
Size - xlarge
Density - xxhdpi
Screen Ratio - long
RAM - 2048 MiB



回答5:

One more way is to use new

Genymotion Android Emulator

It is available for Ubuntu also , have a look at my post for other info related to it.



回答6:

With IntelliJ you need to open tools - android - AVD manager and then when you add a new AVD try ensuring that your CPU/ABI is set to ARM(armeabi) Had some trouble before like this and it was down to this setting.

Hope this helps!