nativescript - nativescript 应用程序在 android 设备上导航时运行缓慢并死机,但在 ios 上运行良好
问题描述
我已经用尽了网上可用的任何建议。我尝试在 package.json 中设置markingMode
"android": { "markingMode": "none" }
我尝试了几种加载视图模型的方法。我尝试保存到物理文件并从中读取。我尝试将每个视图的 json 数据加载到 appSettings 中。
我试过卸载 sass 插件 sidedrawer 插件。我已经更新了所有插件,包括核心组件。
这是插件/版本
nativescript-appversion │ ^1.4.1 │ │
nativescript-iqkeyboardmanager │ ^1.4.0 │ │
nativescript-keyboard-toolbar │ ^1.0.4 │ │
nativescript-local-notifications │ ^3.1.0 │ │
nativescript-orientation │ ^2.2.1 │ │
nativescript-pager │ ^9.3.14 │ │
nativescript-plugin-firebase │ ^8.0.0 │ │
nativescript-pulltorefresh │ ^2.2.0 │ │
nativescript-social-share │ ^1.5.1 │ │
nativescript-sound │ ^1.0.4 │ │
nativescript-ui-sidedrawer │ ^6.0.0 │ │
nativescript-windowed-modal │ ^5.0.6 │ │
rxjs │ ^6.3.3 │ │
tns-core-modules │ ^5.2.2
应用程序应该能够导航不同的视图而不会冻结或减速。
解决方案
我面临着完全相同的问题。使用下面的配置/src/package.json
,而不是在主 package.json 中。
{
"main": "main.js",
"android": {
"v8Flags": "--expose_gc",
"markingMode": "none"
}
}
推荐阅读
- java - 有没有办法创建一个界面来显示来自 Java 中的 FTP 服务器的档案?
- rabbitmq - Spring AMQP:检查 RabbitMQ 配置
- java - 如何将 Headers entrySet.forEach 转换为字符串数组?
- html - Css 为什么我的标签不在我的“div”中间。valign=middle 不起作用
- java - 这段代码不是线程安全的——它需要吗?
- python-3.x - 如何绘制由不同列分组的 Pandas DataFrame 中列中的值的图表
- java - 如何正确地将一个瞬态中的多个实体保存到数据库中?
- docker - 码头工人组成
不启动 适当地 - forms - 自定义电子邮件脚本
- html - 如何修复不起作用的引导下拉菜单