0

我最近更新了我所有的 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.但是该应用程序已安装在手机上。

讨论。

4

1 回答 1

0

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

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

于 2016-09-27T17:46:38.443 回答