• <i id='Q2iJ0'><tr id='Q2iJ0'><dt id='Q2iJ0'><q id='Q2iJ0'><span id='Q2iJ0'><b id='Q2iJ0'><form id='Q2iJ0'><ins id='Q2iJ0'></ins><ul id='Q2iJ0'></ul><sub id='Q2iJ0'></sub></form><legend id='Q2iJ0'></legend><bdo id='Q2iJ0'><pre id='Q2iJ0'><center id='Q2iJ0'></center></pre></bdo></b><th id='Q2iJ0'></th></span></q></dt></tr></i><div id='Q2iJ0'><tfoot id='Q2iJ0'></tfoot><dl id='Q2iJ0'><fieldset id='Q2iJ0'></fieldset></dl></div>
    <legend id='Q2iJ0'><style id='Q2iJ0'><dir id='Q2iJ0'><q id='Q2iJ0'></q></dir></style></legend>

  • <tfoot id='Q2iJ0'></tfoot>

    <small id='Q2iJ0'></small><noframes id='Q2iJ0'>

    • <bdo id='Q2iJ0'></bdo><ul id='Q2iJ0'></ul>

        Android:分配内存失败

        时间:2023-08-29
          <bdo id='jCurO'></bdo><ul id='jCurO'></ul>

            <legend id='jCurO'><style id='jCurO'><dir id='jCurO'><q id='jCurO'></q></dir></style></legend>

                <tbody id='jCurO'></tbody>

                  <small id='jCurO'></small><noframes id='jCurO'>

                  <i id='jCurO'><tr id='jCurO'><dt id='jCurO'><q id='jCurO'><span id='jCurO'><b id='jCurO'><form id='jCurO'><ins id='jCurO'></ins><ul id='jCurO'></ul><sub id='jCurO'></sub></form><legend id='jCurO'></legend><bdo id='jCurO'><pre id='jCurO'><center id='jCurO'></center></pre></bdo></b><th id='jCurO'></th></span></q></dt></tr></i><div id='jCurO'><tfoot id='jCurO'></tfoot><dl id='jCurO'><fieldset id='jCurO'></fieldset></dl></div>
                1. <tfoot id='jCurO'></tfoot>
                  本文介绍了Android:分配内存失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在尝试创建一个具有 2047 mb 内存的模拟器.当我运行它时,我得到了这个错误:

                  [2011-02-22 14:24:14 - 模拟器][2011-02-22 14:24:14 - Emulator] 此应用程序已请求运行时以不寻常的方式终止它.[2011-02-22 14:24:14 - Emulator] 请联系应用程序的支持团队以获取更多信息.[2011-02-22 14:24:26 - 模拟器] 分配内存失败:8

                  我知道降低数字会使它起作用.但我宁愿拥有更多的内存,这样我就可以测试我正在开发的游戏.我假设有更多的内存,它会运行得更快......

                  有人在模拟器上安装了 2047 mb 的内存吗?如果是这样,怎么做?您使用了哪些设置?您是否更改了计算机上的任何特别内容?

                  使用windows 7 64位,更新到最新的android sdk.我还有超过 8gb 的可用内存.我确实有一个设备(摩托罗拉里程碑)可以测试,但是由于它是一个基于网络的游戏,除了我的手机之外,我还需要至少一个其他客户端(希望使用模拟器)来运行.

                  解决方案

                  运行更快的模拟器的解决方案:

                  http://androiddevnotes.com/2011/03/08/1299521520000.htmlp>

                  让我的游戏运行速度更快,堪比手机质量.

                  -- 2012 年 8 月 24 日更新--

                  我看到仍然有人来这里评论这个答案,我对这个问题做了更多的研究.我向您介绍我的发现结果.

                  注意:这些测试是在我的电脑上运行的,您的电脑可能不同.

                  1. 使用属性设备内存大小"= 2048 运行 Android 2.2 (armeabi) 模拟器将失败,和以前一样
                  2. 运行一个 Android 2.2 (armeabi) 模拟器,属性 'Device ram size' = 2048 MB 会通过,然而如果你真的检查设备上的 ram,它的大约 128 MB.
                    • 检查 1:设置 > 应用程序 > 运行服务 - 在屏幕底部添加所有数字
                    • 检查 2:在 adb shell 中运行以下命令:cat/proc/meminfo/ 并注意 MemTotal 字段
                  3. 使用属性设备内存大小"= 2048 运行 Android 4.1 (armeabi-v7) 模拟器将可以工作,但是如果您实际检查设备上的内存,它大约为 512 MB
                    • 检查 1:设置 > 应用程序 > 运行选项卡 - 在屏幕底部添加所有数字
                    • 检查 2:在 adb shell 中运行以下命令:cat/proc/meminfo/ 并注意 MemTotal 字段
                  4. 运行一个 Android 4.1 (armeabi-v7) 模拟器,属性 'Device ram size' = 2048 MB 也可以,但结果与 3 相同.

                  结论

                  添加 'MB'(如下面的一些评论中所述)可能会允许您的设备启动,但它实际上没有 2 GB 的 RAM.即使使用 4.1 模拟器,RAM 大小也为 512 MB.

                  推荐

                  请使用实际设备进行测试.

                  I'm trying to create an emulator with 2047 mb ram. When I run it, I get this error:

                  [2011-02-22 14:24:14 - Emulator]
                  [2011-02-22 14:24:14 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
                  [2011-02-22 14:24:14 - Emulator] Please contact the application's support team for more information.
                  [2011-02-22 14:24:26 - Emulator] Failed to allocate memory: 8
                  

                  I understand that lowering the number will make it work. But I'd rather have it with more ram, so I can test a game I'm developing. I'm assuming with more ram, it would run faster...

                  Has anyone got 2047 mb of ram on the emulator? If so, how? What settings did you use? Did you change anything special on your computer?

                  Using windows 7 64-bit, updated to the latest android sdk. Also I have over 8gb of ram available. I do have one device (motorola milestone) to test on, however since it is a network-based game I need at least one other client (hoping to use the emulator) to run with in addition to my phone.

                  解决方案

                  Solution to running a faster emulator:

                  http://androiddevnotes.com/2011/03/08/1299521520000.html

                  Runs my game a lot faster, comparable to phone quality.

                  -- Update 08/24/12 --

                  I see that people still come here and comment on this answer, and I have done more research on this issue. I present to you the results of my findings.

                  NOTE: These tests were run on my computer, your computer may be different.

                  1. Running an Android 2.2 (armeabi) emulator with Property 'Device ram size' = 2048 will fail, just as before
                  2. Running an Android 2.2 (armeabi) emulator with Property 'Device ram size' = 2048 MB will pass, however if you actually check the ram on the device, its around 128 MB.
                    • check 1: Settings > Applications > Running Services - add all the numbers on the bottom of the screen
                    • check 2: run the following command in adb shell: cat /proc/meminfo/ and note the MemTotal field
                  3. Running an Android 4.1 (armeabi-v7) emulator with Property 'Device ram size' = 2048 will work, however if you actually check the ram on the device its around 512 MB
                    • check 1: Settings > Apps > Running tab - add all the numbers on the bottom of the screen
                    • check 2: run the following command in adb shell: cat /proc/meminfo/ and note the MemTotal field
                  4. Running an Android 4.1 (armeabi-v7) emulator with Property 'Device ram size' = 2048 MB will work as well, but with the same results as 3.

                  Conclusion

                  Adding 'MB' as noted in some of the comments below may allow your device to be launched, however it doesn't actually have 2 GB of RAM. Even with a 4.1 Emulator, the RAM Size is at 512 MB.

                  Recommendation

                  Please use an actual device for testing.

                  这篇关于Android:分配内存失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:搜索栏,将路径颜色从黄色更改为白色 下一篇:地图没有进入模拟器android api v2

                  相关文章

                  最新文章

                    • <bdo id='YCwMe'></bdo><ul id='YCwMe'></ul>
                  1. <tfoot id='YCwMe'></tfoot>
                    1. <legend id='YCwMe'><style id='YCwMe'><dir id='YCwMe'><q id='YCwMe'></q></dir></style></legend>

                      <small id='YCwMe'></small><noframes id='YCwMe'>

                      <i id='YCwMe'><tr id='YCwMe'><dt id='YCwMe'><q id='YCwMe'><span id='YCwMe'><b id='YCwMe'><form id='YCwMe'><ins id='YCwMe'></ins><ul id='YCwMe'></ul><sub id='YCwMe'></sub></form><legend id='YCwMe'></legend><bdo id='YCwMe'><pre id='YCwMe'><center id='YCwMe'></center></pre></bdo></b><th id='YCwMe'></th></span></q></dt></tr></i><div id='YCwMe'><tfoot id='YCwMe'></tfoot><dl id='YCwMe'><fieldset id='YCwMe'></fieldset></dl></div>