我最近更新了所有tns deps:
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.
但是应用程序IS安装在手机上 .
讨论 .
1 回答
问题出在我的app / App_Resources / android / Manifest和gradle中 .
我将它们改为原始的并且有效 .