使用NS 4.1、core 4.1和android 4.1
我有一个带有模板的列表视图,有时我必须导航回列表视图页面并重新创建列表。
在Android上执行此操作时-我收到以下错误
System.err: Error: There is no entry with key 'org.nativescript.widgets.GridLayout{70646a0 VFE...C.. ......I. 0,449-1440,803}' in the realized views cache for template with key'info'.
我假设列表视图正在缓存视图,并导致重新生成列表视图时崩溃。
有没有办法强制清除缓存?
有什么解决方案吗?
这在Android 8中发生了,而不是在早期的Android上。
发布于 2018-08-09 14:29:03
这上面有一个问题:https://github.com/NativeScript/nativescript-angular/issues/1479
现在,您可以尝试用RadListView替换您的ListView。或者,如果您在两个屏幕之间使用幻灯片转场,可以尝试删除此转场。这对我很有效。
https://stackoverflow.com/questions/50901650
复制