【问题标题】:Cannot Deploy And Run Nativescript code Into Emulator and Samsung Device无法在模拟器和三星设备中部署和运行 Nativescript 代码
【发布时间】:2015-03-30 04:00:51
【问题描述】:

我想问一下关于在 nativescript 中运行 android 的问题: 我无法在模拟器和三星设备(Galaxy Ace)上运行 android 应用程序

在模拟器上运行的命令(两个命令都失败)

tns 运行 android --emulator tns emulate android --avd AndroidEmulator

在三星设备上运行的命令

tns 运行 android --device 7A89BB2E66674E44B6A6270F7F84XXX

但我可以为 lennovo s920 运行,命令如下:

tns 运行 android --device GAGEMZYL4P654XXX

我已经在 Windows 上将 android sdk“平台工具”和“工具”文件夹路径设置为用户变量。并且已经配置了三星设备以启用 USB 调试

有什么想法吗?

【问题讨论】:

  • 根据我的研究,我发现 nativescript 仅适用于 android 4.4.2 (Kit Kat),因为我创建了新的模拟器 nexus5 (Android 4.4.2) 并且运行良好。任何人都可以向我解释为什么 nativescript 只能在 android 442/API 19 上运行? .fyi,我已经在 android manifest 中将 min sdk 版本更改为 8,但没有解决这个问题。

标签: android android-emulator nativescript


【解决方案1】:

NativeScript 支持 Api17 以上的所有 Android 版本。

您能否尝试使用--log trace 选项运行命令并将完整日志粘贴到此处。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-10-27
    • 1970-01-01
    • 2014-01-04
    • 2016-05-24
    • 2017-05-29
    • 2018-05-21
    • 1970-01-01
    • 2019-08-04
    相关资源
    最近更新 更多