Adroid安装常见问题解决方法

[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即可。

你可能感兴趣的:(安装)