c# - 无法在 Bluestacks 上连接/部署 Visual Studio Xamarin

标签 c# visual-studio xamarin xamarin.android bluestacks

我正在使用 MSVS2015ProXamarin

我还安装了 BlueStacks 以获得 AVD

但是由于某种原因,BlueStacks AVD 没有出现在 debug 的可用设备列表中。

检查以下图像:

enter image description here

[编辑]

仅供引用:在 Visual Studio 输出窗口中,我收到错误消息(我之前没有看到):

Emulator name lookup failed for emulator 'emulator-5554'

enter image description here

关于如何解决这个问题的任何想法?

最佳答案

如何连接Bluestacks (4) Android Emulator 与 Visual Studio (本例2019):

第 1 步:

在 Bluestacks 中激活 ADB 设置

enter image description here

第 2 步:

在 VS 中,转到 Tools -> Android -> Android Adb Command Prompt... 并插入

adb 连接 127.0.0.1:5555

完成!

您现在应该看到在 Bluestacks Advanced-Settings 中选择为 Device-Profil 的设备
enter image description here
enter image description here

关于c# - 无法在 Bluestacks 上连接/部署 Visual Studio Xamarin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40633074/

相关文章:

ios - 在 iOS 上的 Xamarin Forms 中预加载 WebView

ios - 如何为使用 Xamarin 构建的 iOS 应用程序启用堆栈粉碎保护?

c# - 如何使用 Json.NET 将 XML 序列化为 JSON 对象

c# - 识别未本地化的文本

visual-studio - 从程序集信息中访问 AssemblyVersion 号以在构建后事件命令行中使用

visual-studio - 在预处理器中检测 ARM-64?

android - 是否可以发送带有 Intent 的自定义对象作为 Extra

c# - Lambda .Where 限制为字符串

c# - 使用 XmlDocument 从子节点读取属性字符串

visual-studio - Visual Studio 2015 - typescript "Build:Cannot find module..."