【问题标题】:Nativescript not livesyncingNativescript 不实时同步
【发布时间】:2016-09-28 01:46:38
【问题描述】:

我最近更新了我所有的 tns 部门:

karlis@karlis-SATELLITE-L750 ~/Projects/my-instagram/test $ tns info
All NativeScript components versions information
┌──────────────────┬─────────────────┬────────────────┬─────────────┐
│ Component        │ Current version │ Latest version │ Information │
│ nativescript     │ 2.3.0           │ 2.3.0          │ Up to date  │
│ tns-core-modules │ 2.3.0           │ 2.3.0          │ Up to date  │
│ tns-android      │ 2.3.0           │ 2.3.0          │ Up to date  │
│ tns-ios          │ 2.3.0           │ 2.3.0          │ Up to date  │

当我更改代码并保存时,这会显示在控制台中。但是应用程序没有任何变化(关闭和打开应用程序也无济于事):

4:42:18 PM - File change detected. Starting incremental compilation...

4:42:22 PM - Compilation complete. Watching for file changes.

Executing before-prepare hook from /home/karlis/Projects/my-instagram/test/hooks/before-prepare/nativescript-dev-typescript.js
Project successfully prepared (android)
Transferring project files...
Successfully transferred all files.
Applying changes...
Successfully synced application org.nativescript.test on device 3d828389.

每次我运行命令 tns livesync android --watch --device=3d828389 我都会重新安装完整的应用程序并显示消息:The application with id "org.nativescript.test" is not installed on device with identifier 3d828389. 但是该应用程序已安装在手机上。

讨论。

【问题讨论】:

  • 建议你卸载设备上的应用,然后运行 ​​tns 再进行 tns livesync。

标签: nativescript angular2-nativescript


【解决方案1】:

问题出在我的 app/App_Resources/android/Manifest 和 gradle 中。

我将它们更改为原始的,并且有效。

【讨论】:

    猜你喜欢
    • 2017-10-08
    • 2019-06-19
    • 2020-03-29
    • 1970-01-01
    • 2013-06-04
    • 1970-01-01
    • 1970-01-01
    • 2020-10-06
    • 2016-03-31
    相关资源
    最近更新 更多