2012-12-24 70 views
1

我是初學者android開發者:)我dowland android sdk完全從2.0版本到4.2.I創建了一個新項目並添加了一些按鈕,複選框,然後我試圖運行我的第一個項目,並得到這樣的錯誤:Android Runtime Errorr

[2012-12-25 00:09:13 - aaa] 
[2012-12-25 00:09:13 - aaa] Android Launch! 
[2012-12-25 00:09:13 - aaa] adb is running normally. 

[2012-12-25 00:09:13 - aaa] Performing com.example.xxx.MainActivity activity launch 
[2012-12-25 00:09:13 - aaa] Automatic Target Mode: launching new emulator with compatible AVD 'AVD_for_Galaxy_Nexus_by_Google' 
[2012-12-25 00:09:13 - aaa] Launching a new emulator with Virtual Device 'AVD_for_Galaxy_Nexus_by_Google' 
[2012-12-25 00:09:14 - Emulator] WARNING: Data partition already in use. Changes will not persist! 
[2012-12-25 00:09:14 - Emulator] WARNING: Cache partition already in use. Changes will not persist! 
[2012-12-25 00:09:14 - Emulator] Failed to allocate memory: 8 
[2012-12-25 00:09:14 - Emulator] 
[2012-12-25 00:09:14 - Emulator] This application has requested the Runtime to terminate it in an unusual way. 
[2012-12-25 00:09:14 - Emulator] Please contact the application's support team for more information. 

我該如何解決這個錯誤?

+1

嘗試使用不同的模擬器..有時候會發生筆爲特定的仿真器密度設置或類似。 –

+0

ty so much/now emulator working :) –

回答

0

有時會發生特定仿真器密度設置。嘗試使用其他模擬器,調整其設置,直到獲得它的工作。

0

我得到了同樣的錯誤......

解決方案

變化hw.ramSize到1024MB在的config.ini文件

$User>.android>avd>name_of_avd> config.ini 

它工作正常