]无法分配内存:1455 [英] ] Failed to allocate memory: 1455

查看:86
本文介绍了]无法分配内存:1455的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好。

我每次运行AVD时都会在android中开发一个游戏,这个错误出现了,模拟器取消它正在运行:

Hello.
Iam develope a game in android every time i run the AVD this errors shows up and emulator cancel it''s running:

[2011-08-16 03:21:46 - Emulator] Failed to allocate memory: 1455
[2011-08-16 03:21:46 - Emulator] 
[2011-08-16 03:21:46 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2011-08-16 03:21:46 - Emulator] Please contact the application''s support team for more information.



为什么模拟器内涵分配ram内存以及我如何能够解决这个问题???????

谢谢


Why the emulator connot allocate the ram memory and how i can sove this problem ???????
thanks

推荐答案

我有根据 Calvin 在techarena论坛中的指示证明了最佳和正确的解决方案。

- 单击开始,单击运行,在打开框中键入sysdm.cpl,然后按ENTER键。

- 单击高级选项卡,然后在性能下单击设置。

- 单击高级选项卡,然后在虚拟内存下单击更改。 />
- 在驱动器[卷标]下,单击包含要更改的页面文件的驱动器。

- 在所选驱动器的分页文件大小下,单击自定义大小,键入初始大小(MB)或最大大小(MB)框中的新页面文件大小(兆字节(MB)),然后单击设置。

- 单击确定关闭对话框框和应用更改。



通常的错误无法分配内存:1455将由虚拟内存分配引起。在以这种方式解析根C盘的虚拟内存分配之后,你应该在Eclipse的控制台中阅读以下内容:

[2011-11-27 12:33:06 - Videotutorial1] ------------------------------

[2011-11-27 12:33:06 - Videotutorial1] Android发布!

[2011-11-27 12:33:06 - Videotutorial1] adb正常运行。

[2011-11-27 12:33: 06 - Videotutorial1]执行com.videotutoriales.videotutorial1.Videotutorial1活动启动

[2011-11-27 12:33:06 - Videotutorial1]自动目标模式:首选AVD''VtAVD''不可用。启动新模拟器。

[2011-11-27 12:33:06 - Videotutorial1]使用虚拟设备VtAVD启动新模拟器

[2011-11 -27 12:33:39 - 模拟器]模拟器:模拟器窗口不在视图中并被重新定位

[2011-11-27 12:33:39 - 模拟器]

[2011-11-27 12:33:45 - Videotutorial1]新模拟器发现:模拟器-5554

[2011-11-27 12:33:45 - Videotutorial1]等待HOME(''' android.process.acore'')即将推出...

[2011-11-27 12:38:19 - Videotutorial1]首页设备''模拟器-5554''

[2011-11-27 12:38:19 - Videotutorial1]将Videotutorial1.apk上传到设备''模拟器-5554''

[2011-11-27 12:38 :20 - Videotutorial1]安装Videotutorial1.apk ...

[2011-11-27 12:40:52 - Videotutorial1]成功!

[2011-11-27 12:40:53 - Videotutorial1]启动活动com.videotutoriales.videotutorial1.Videotutorial1Activity on device emulator-5554

[2011-11-27 12:41:18 - Videotutorial1]尝试将调试器连接到端口8628上的''com.videotutoriales.videotutorial1''
I have the best and right solution proved according to the indications by Calvin in techarena forums.
- Click Start, click Run, type sysdm.cpl in the Open box, and then press ENTER.
- Click the Advanced tab, and then under Performance click Settings.
- Click the Advanced tab, and then under Virtual memory click Change.
- Under Drive [Volume Label], click the drive that contains the paging file that you want to change.
- Under Paging file size for selected drive, click Custom size, type a new paging file size in megabytes (MB) in the Initial size (MB) or Maximum size (MB) box, and then click Set.
- Click OK to close the dialog box and apply changes.

This usual error "Failed to allocate memory: 1455" would be caused by Virtual Memory alocation. After resolving in this way the allocation of Virtual Memory for the root C disk, you should read in the console of Eclipse, the following:
[2011-11-27 12:33:06 - Videotutorial1] ------------------------------
[2011-11-27 12:33:06 - Videotutorial1] Android Launch!
[2011-11-27 12:33:06 - Videotutorial1] adb is running normally.
[2011-11-27 12:33:06 - Videotutorial1] Performing com.videotutoriales.videotutorial1.Videotutorial1Activity activity launch
[2011-11-27 12:33:06 - Videotutorial1] Automatic Target Mode: Preferred AVD ''VtAVD'' is not available. Launching new emulator.
[2011-11-27 12:33:06 - Videotutorial1] Launching a new emulator with Virtual Device ''VtAVD''
[2011-11-27 12:33:39 - Emulator] emulator: emulator window was out of view and was recentered
[2011-11-27 12:33:39 - Emulator]
[2011-11-27 12:33:45 - Videotutorial1] New emulator found: emulator-5554
[2011-11-27 12:33:45 - Videotutorial1] Waiting for HOME (''android.process.acore'') to be launched...
[2011-11-27 12:38:19 - Videotutorial1] HOME is up on device ''emulator-5554''
[2011-11-27 12:38:19 - Videotutorial1] Uploading Videotutorial1.apk onto device ''emulator-5554''
[2011-11-27 12:38:20 - Videotutorial1] Installing Videotutorial1.apk...
[2011-11-27 12:40:52 - Videotutorial1] Success!
[2011-11-27 12:40:53 - Videotutorial1] Starting activity com.videotutoriales.videotutorial1.Videotutorial1Activity on device emulator-5554
[2011-11-27 12:41:18 - Videotutorial1] Attempting to connect debugger to ''com.videotutoriales.videotutorial1'' on port 8628


这篇关于]无法分配内存:1455的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆