应用程序未在Visual Studio 2015中的Android的Visual Studio模拟器中运行 [英] App not run in visual studio emulator for android in visual studio 2015

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

问题描述

我在调试该项目时调试没有问题,但是当我运行带有Visual Studio模拟器的Android模拟器运行应用程序但未启动我的应用程序并部署失败并且不显示错误时,我创建了空白的xamarin android项目,而未添加任何代码

I create blank xamarin android project without add any code when i debug this project debugging without problem but when i run app with visual studio emulator for android emulator is running but not starting my app and deploy failed and don't show me error

为什么? 请帮助我

推荐答案

我遇到了同样的问题. VS 2015可以启动VS模拟器,但不能部署该应用程序.

I had the same issue. VS 2015 can launch the VS emulator but can't deploy the app.

我能够解决以下问题:

  1. 启动仿真器(VS中为F5,然后使用构建/取消"菜单取消部署)
  2. 点击模拟器右侧工具栏中的 V形图标(»)
  3. 选择网络标签
  4. 找到首选网络ip地址
  5. 回到VS,单击打开Adb命令提示符工具栏按钮
  6. 键入 adb connect [仿真器IP地址]
  7. 在VS中再次按F5
  1. Launch the emulator (F5 in VS, then cancel the deployment using the Build/Cancel menu)
  2. Click on the chevron icon (») in the toolbar to the right of the emulator
  3. Select the Network tab
  4. Locate the preferred network ip address
  5. Back in VS, click on the Open Adb Command Prompt toolbar button
  6. Type adb connect [the emulator ip address]
  7. Press F5 again in VS

对我来说就像一个VS错误.

Looks like a VS bug to me.

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

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