您的位置:首页 > 其它

Adroid安装常见问题解决方法

2013-02-16 18:56 316 查看
[2013-02-16 18:43:33 - Emulator] Failed to allocate memory: 8

[2013-02-16 18:43:33 - Emulator]

[2013-02-16 18:43:33 - Emulator] This application has requested the Runtime to terminate it in an unusual way.

[2013-02-16 18:43:33 - Emulator] Please contact the application's support team for more information.

解决方案是在.android\avd\<avd-profile-name>.avd\config.ini 文件中修改

hw.ramSize=1024 为hw.ramSize=1024MB,也就是加个单位MB。然后就好用了。

-----------------------------------------------------------

Android模拟器访问本机本地地址

在一般的Java程序开发中,我们都是使用127.0.0.1来访问本机服务的,但是如果我们在Android程序中采用同样的地址,那么Android模拟器将无法正常访问到我们的服务,因为在Android中,对本地地址是映射到10.0.2.2上面,因此只需要将127.0.0.1改成10.0.2.2即可。
本文出自 “移动通讯” 博客,请务必保留此出处http://minghuang.blog.51cto.com/641280/1134220
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: