Reputation: 11146
I am trying to create emulator with FULL HD resolution (1980 x 1080), but while starting I am getting following error :
Starting emulator for AVD 'emu' Failed to allocate memory: 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
any one have idea why this error occur, and how can I create full HD resolution emulator?
Upvotes: 1
Views: 5677
Reputation: 13785
This following solution worked for me. In the following configuration file:
C:\Users\<user>\.android\avd\<avd-profile-name>.avd\config.ini
Replace
hw.ramSize=1024
by
hw.ramSize=1024MB
If not work above then setting below.
hw.lcd.density=160
sdcard.size=300M
skin.path=1980x1080
skin.name=1980x1080
hw.cpu.arch=arm
abi.type=armeabi-v7a
hw.cpu.model=cortex-a8
vm.heapSize=48
hw.ramSize=1024MB
image.sysdir.1=system-images\android-16\armeabi-v7a\
Upvotes: 6
Reputation: 2318
This is working for me to create avd
android create avd -n test -t 1 -b armeabi-v7a -s 1980x1080
then to start
emulator -avd test -initdata userdata.img -ramdisk ramdisk.img -system system.img -sdcard songs_for_music_app/Music_card.img -dpi-device 240
You can find all images here
android-sdk/system-images/android-15/armeabi-v7a
and emularor
and android
commands can be found in android-sdk/platfor-tools
and android-sdk/tools
Upvotes: 0