2012-12-24 34 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 

它工作正常