1

我是初学者 android 开发人员:) 我将 android sdk 从 2.0 版本完全降到 4.2。我创建了一个新项目并添加了一些按钮、复选框然后我尝试运行我的第一个项目并得到了这样的错误:

[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.

我该如何解决这个错误?

4

2 回答 2

0

对于特定的模拟器密度设置,有时会发生这种情况。尝试使用不同的模拟器,调整它的设置,直到你让它工作。

于 2012-12-24T22:58:38.233 回答
0

我有同样的错误...

解决方案

config.ini文件下的hw.ramSize改为 1024MB

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

它工作正常

于 2013-02-19T17:12:43.227 回答