无法运行Android模拟器 [英] Unable to run Android Emulator

查看:975
本文介绍了无法运行Android模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2013年Xamarin.Forms项目,当我尝试运行我的Andr​​oid应用程序模拟器加载但它不会加载该应用程序,并会出现不同的错误。

I have a Xamarin.Forms project in Visual Studio 2013 and when I try to run my Android application the emulator loads but then it doesn't load the app and different errors will occur.

当我尝试Android模拟器取决于什么设置,我选择了它无论是与

When I try to run the Android Emulator depending on what settings I chosen it either pops up with

DWP handshake failed

或调试输出它显示

Couldn't connect to logcat, GetProcessId returned: 0

我发现所有现有的解决方案至今没有工作,尽管他们在过去的工作。

All existing solutions I have found haven't worked so far, even though they have worked in the past.

推荐答案

我只是想在这里列出所有我做过来解决这个问题,因为它发生在我身上了几次,每次都用不同的原因的事。

I just wanted to list here all the things I have done to resolve this issue since it has happened to me a few times, with different reasons each time.

然后释放调试

有时你需要在Release模式先运行它的仿真器,那么你就可以切换回调试模式和它的作品。

Sometimes you need to run it in Release mode first to the emulator, then you can switch back to Debug mode and it works.

快速部署


  1. 转到您的Andr​​oid项目的属性

  1. Go to the properties in your Android Project

转到Android的选项

Go to Android Options

关闭快速部署

检查日志

打开Android设备登录,连接到您的仿真器,看看有什么消息回来了。

Open up the Android Device Logging, connect to your emulator and see what messages are coming back.

对于我来说,我看到一个内存溢出异常。该模拟器只有323 MB的内存为它设置。打开模拟器管理器,然后编辑您的仿真器(设备旁边记录的图标)。增加内存为512 MB(即这样做是对我来说),而这一切又开始工作。

For me I saw an Out of Memory Exception. The emulator only had 323 MB of memory set for it. Open the emulator manager (the icon next to the device logging) and then edit your emulator. Increase the memory to 512 MB (that did it for me), and it all started working again.

这篇关于无法运行Android模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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