Nativescript 不实时同步

Nativescript not livesyncing

我最近更新了我所有的 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. 但是应用程序安装在 phone.

讨论。

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

我把它们改成了原来的,效果很好。