javascript - NativeScript 说没有找到模拟器图像?
问题描述
所以这是我第一次使用本机脚本,我似乎无法让它识别任何模拟器?我还下载了 NativeScript,它说我也缺少模拟器。
跑步tns device android --available-devices
回报
Available emulators
┌─────────────┬──────────┬─────────┬───────────────────┬──────────────────┬────────────┐
│ Device Name │ Platform │ Version │ Device Identifier │ Image Identifier │ Error Help │
└─────────────┴──────────┴─────────┴───────────────────┴──────────────────┴────────────┘
Connected devices & emulators
Searching for devices...
Cannot find connected devices. Reconnect any connected devices, verify that your system recognizes them, and run this command again.
在 Sidekick 上,我想使用云构建,因为我在 Windows 上并且不能拥有 xcode,但这也告诉我它找不到任何设备? https://i.imgur.com/PiVrSML.png
单击“虚拟设备启动器”按钮时,它只是告诉我没有找到模拟器图像?
解决方案
以管理员身份运行Command Prompt
并执行:
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://nativescript.org/setup/win-avd'))"
这应该会在您的 Windows 系统上下载/修复 Android AVD。
推荐阅读
- parsing - Ansible Telnet 输出解析
- javascript - 如何允许用户在 React 中编辑网站的一部分?
- python - PyVista,如何保存整个渲染结果
- python - 在左右边界内搜索短语
- python - 如何在 Python Pandas 中转换 DataFrame 中的日期时间列?
- linux - gdb 是否有类似洞察力的前端?
- c - 如何使用包含 void 指针和指向该结构的递归指针的单链表结构格式在 C 中创建嵌套列表?
- python - 在绘图区域之外更改散景图颜色?
- ssh - 终端外壳登录使用什么协议?
- docker - 在 NGINX 反向代理上服务 NGINX Docker 容器如何将所有路由重定向到 index.html