2

我正在尝试模拟包含 2GiB RAM 和一些自定义硬件(如 s-pen 和 TouchWiz)的 Galaxy Note 2。我创建了一个 2GB 的模拟器。模拟器不会启动,实际上它正在崩溃 Eclipse。我还想模拟多屏 TouchWiz 支持。我在任何地方都看不到任何关于模拟 TouchWiz 等自定义平台的信息。有任何想法吗?我需要一个不错的 Galaxy 系列测试平台,但我什至无法让基本的 android 工作。

编辑:三星开发页面显示此设置:http: //developer.samsung.com/forum/thread/emulator-size-for-galaxy-note-2-/77/178557

这是缺少可用的内存吗?

4

3 回答 3

3

using the suggestion of manually adding "mb" behind the memory size in your configuration file (as suggested in this thread: Android: failed to allocate memory ) (located at: %USERPROFILE%/.android/avd/name-of-your-avd/config.ini) has solved the 768mb problem here!

example that now works on my win7 x64 ultimate os -with- dedicated gpu;

avd.ini.encoding=ISO-8859-1
hw.sdCard=no
hw.device.manufacturer=Google
hw.mainKeys=no
hw.lcd.density=320
hw.accelerometer=yes
hw.dPad=no
hw.cpu.arch=x86
skin.name=720x1280
abi.type=x86
hw.device.hash=1197498893
hw.trackBall=no
hw.device.name=Galaxy Nexus
hw.camera.back=none
hw.sensors.proximity=yes
hw.battery=yes
disk.dataPartition.size=512M
hw.gpu.enabled=yes
image.sysdir.1=system-images\android-18\x86\
hw.audioInput=yes
hw.sensors.orientation=yes
hw.camera.front=none
hw.gps=yes
skin.dynamic=yes
skin.path=720x1280
hw.keyboard=yes
vm.heapSize=128
hw.ramSize=2048mb

I have tested this on two machines, my desktop and laptop both running Windows 7 X64 Ultimate

The Laptop has an Intel I7-4702MQ with 12GB ram and GeForce GTX765M The Desktop has an Intel I7-3820 with 32GB ram and has Ati 6950 in Crossfire and an Nvidia GTX560Ti (normally for physx).

The desktop only has issues in reliably starting the gpu acceleration while using crossfire, other then that i've had no issues with the emulator at all and even managed to assign 4096mb RAM with a 256VM Heap (however increasing the VM-heap above 128 seems to slowdown emulator initiation tremendously here)

On the desktop i also tested the 4096MB setup while even using a RAMDISK but this didn't increase performance too much.

Best settings overall (in my experience) in startup and responsiveness after just a few tests; 2048 with 128mb VM Heap size, gpu acceleration enabled.

Hope this helps out others!

于 2013-09-16T10:27:48.420 回答
1

在 Windows 7 上运行时,我实际上遇到了类似的问题。当我以管理员权限重新启动 Android Studio 时,它起作用了。否则我什至无法打开 AVD 管理器。

于 2014-02-17T21:27:45.093 回答
0

这个问题可能与以下问题重复:

Android:分配内存失败

我不认为你不会这样做,但我还是要说出来......检查正确答案的详细信息,但特别是检查正确答案的评论。

说真的,我希望这会有所帮助。过去,Android 和 Eclipse 问题对我来说一直是个问题,直到我学会用禅宗般的态度和大量详尽的研究和反复试验来解决它们。

于 2013-06-01T04:53:54.977 回答