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

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

问题描述

当我调试这个项目时,我创建了空白的 xamarin android 项目而没有添加任何代码,但是当我使用 Visual Studio 模拟器运行应用程序时,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.

我能够像这样解决问题:

I was able to solve the issue like this:

  1. 启动模拟器(VS 中的 F5,然后使用构建/取消菜单取消部署)
  2. 点击模拟器右侧工具栏中的人字形图标(»)
  3. 选择网络标签
  4. 找到首选网络 IP 地址
  5. 回到 VS,点击打开 Adb 命令提示符工具栏按钮
  6. 输入adb connect [模拟器ip地址]
  7. 在 VS 中再次按 F5

在我看来像是 VS 错误.

Looks like a VS bug to me.

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

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