在过去的 3 个小时里,我一直在努力解决这个问题。
我叫什么:../../latest-cli/nativescript-cli/bin/tns run android --watch --device=emulator-5554
有些想法会很棒!
在过去的 3 个小时里,我一直在努力解决这个问题。
我叫什么:../../latest-cli/nativescript-cli/bin/tns run android --watch --device=emulator-5554
有些想法会很棒!
确保您拥有 NativeScript 的所有最新部分(核心模块、运行时和 CLI)。这里有一篇很棒的博客文章:http: //fluentreports.com/blog/?p=323,其中概述了上述所有内容都需要同步。那么你应该尝试运行tns platform remove android
then tns platform add android
。然后确保卸载此失败的构建,并在重新添加平台后安装新构建。
也只需打开模拟器并调用tns livesync android --watch
,CLI 就会检测到正在运行的模拟器。无需指定。