Nativescript Vue开发人员工具无法正常工作

Sin*_*met 5 vue.js nativescript vue-devtools nativescript-vue

我正在按照此处说明的指南进行操作:https : //nativescript-vue.org/en/docs/getting-started/vue-devtools/

I have the dev tools and the app up and running but the dev tools says "Waiting for connection..." while the app is already running on my android emulator.

How can I fix this?

在此处输入图片说明

Cem*_*aan 0

设备和开发计算机必须位于同一网络中。

所以你需要检查你的模拟器是否有正确的连接。

10.0.2.2是主机环回接口的特殊别名(即开发计算机上的 127.0.0.1)

  • 与模拟设备的通信可能会被计算机上运行的防火墙程序阻止。

  • 与模拟设备的通信可能会被您的计算机所连接的另一个(物理)防火墙/路由器阻止。检查您的设备 tns deviceadb devices然后 ping 其 IP 或telnet localhost 5554

您的主机本地 IP 地址可以不同,但​​只需使用 10.0.2.2

Vue.use(VueDevtools, { host: '10.0.2.2' })
Run Code Online (Sandbox Code Playgroud)