-2

我正在尝试在我的 Droid Razor 上运行我的第一个应用程序,这是我遇到的错误。以下是代码

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

1 回答 1

0

您为 AVD 分配了多少内存?有时当您使用最多 1 GB 时会出现问题。尝试将内存减少到 512 MB 或更低,看看是否有帮助。来自 Google:“在 Windows 上,模拟大于 768M 的 RAM 可能会失败……如果模拟器无法启动,请尝试逐渐减小 RAM 值。”

于 2013-07-06T23:47:07.913 回答