构建和运行我的第一个应用程序 [重复]
Posted
技术标签:
【中文标题】构建和运行我的第一个应用程序 [重复]【英文标题】:Building and Running my First App [duplicate] 【发布时间】:2013-07-04 16:28:50 【问题描述】:我试图在我的 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.
【问题讨论】:
[2013-07-06 15:52:41 - Emulator] Failed to allocate memory: 8
【参考方案1】:
您为 AVD 分配了多少内存?有时当您使用最多 1 GB 时会出现问题。尝试将内存减少到 512 MB 或更低,看看是否有帮助。来自 Google:“在 Windows 上,模拟大于 768M 的 RAM 可能会失败……如果模拟器无法启动,请尝试逐渐减小 RAM 值。”
【讨论】:
以上是关于构建和运行我的第一个应用程序 [重复]的主要内容,如果未能解决你的问题,请参考以下文章