Visual Studio Android模拟器无法运行应用程序 [英] Visual Studio Android Emulator won't run application

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

问题描述

我最近涉足Xamarin开发.我在Xcode制作iOS应用方面有丰富的经验,iOS方面也非常简单.现在,我正在尝试实现Android.我下载了一个Hello World示例来了解我的想法.当我运行它时,我不会出现显示模拟器(MonoForAndroid_API_10MonoForAndroid_API_12)的问题,但是实际的应用程序不会运行,并且不会在模拟器上的任何地方显示.基本上,每当我在Android的Xamarin中使用run或run时,它都会启动一个功能齐全的模拟器,尽管它是空的.

I recently got into Xamarin development. I have a lot of experience in Xcode making iOS apps and the iOS side was very straight forward. Now I'm trying to implement Android. I downloaded a Hello World example to get my bearings. When I run it I have no problems getting the simulator to show up (MonoForAndroid_API_10 and MonoForAndroid_API_12) but the actual application doesn't run, and does not show up anywhere on the simulator. Essentially whenever I use run or run with in Xamarin on Android, it pulls up a fully functioning, albeit empty simulator.

如何使我的应用程序在模拟器上运行?

How do I get my application to run on the emulator?

推荐答案

就像其他评论者一样,这很可能只是计算机上仿真器运行缓慢的症状.我正在具有8GB RAM的特立独行的2010年时代OSX机器上运行Xamarin-Android开发,它运行缓慢,运行缓慢,但可用.尝试查找Intel x86速度的改进(查找HAXM),您会发现该仿真器的速度要快得多.

Like the other commenters, this is most likely just a symptom of slow emulator on your machine. I'm running Xamarin-Android development on my 2010-era OSX machine in mavericks with 8GB RAM, and it is slow-slow-slow, but usable. Try to find the Intel x86 speeds improvements (look for HAXM) and you will find that the emulator will be much much faster.

是的,买一台真正的手机并将其插入计算机:总是比仿真快得多.

And yeah, get a real handset and plug it in to your computer: always much faster than emulation.

稍后编辑:对于Mac OSX或PC/Windows或PC/Linux,获取 Genymotion .它比其他模拟器要快得多.从那以后,我发现这比在连接的Android手机上运行该应用程序快或快.不必将设备插入我的USB端口之一,这肯定会更简单,并允许我在火车上进行编码和测试. http://www.genymotion.com/

later edit Get Genymotion for Mac OSX or for PC/Windows or PC/Linux. It's way way way faster than the other emulators. I have since found that this is as fast, or faster, than running the App on my connected Android phone. It's certainly simpler in not having to have the device plugged into one of my USB ports, and allows me to code and test on the train. http://www.genymotion.com/

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

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