2014-02-06 52 views
0

我已經在SDK安裝Eclipse和Android SDK中的經理,安裝爲Android 4.22的文件,並試圖運行樣品Android項目..但我得到以下錯誤無法分配內存:8款Android

[2014-02-06 15:28:08 - myFirstApp] Android Launch! 
[2014-02-06 15:28:08 - myFirstApp] adb is running normally. 
[2014-02-06 15:28:08 - myFirstApp] Performing com.example.myfirstapp.MainActivity activity launch 
[2014-02-06 15:28:08 - myFirstApp] Automatic Target Mode: launching new emulator with compatible AVD 'AVD_233' 
[2014-02-06 15:28:08 - myFirstApp] Launching a new emulator with Virtual Device 'AVD_233' 
[2014-02-06 15:28:17 - Emulator] Failed to allocate memory: 8 
[2014-02-06 15:28:17 - Emulator] 
[2014-02-06 15:28:17 - Emulator] This application has requested the Runtime to terminate it in an unusual way. 
[2014-02-06 15:28:17 - Emulator] Please contact the application's support team for more information. 

我嘗試以下..

1) accessed C:\Users\user\.android\avd\user.avd\config.ini and changed hw.ramSize=1024MB 
2)accessed avd and edited memory optionfrom 1024mb s to 512mb 

它仍然沒有工作...在此先感謝..

+0

嘗試[Android模擬器無法分配內存8] [1]這將有助於 [1]:HTTP: //stackoverflow.com/questions/11667907/android-emulator-failed-to-allocate-memory-8 –

回答

0

試試你的內存設置爲512 MB。它爲我工作..

如果它不適合你,嘗試減少你的RAM和VM堆進一步。

第一次嘗試你的模擬器有一些LDPI模型(2.7英寸)..