【发布时间】:2020-05-25 04:03:22
【问题描述】:
关于这个插件:https://github.com/EddyVerbruggen/nativescript-feedback
有人知道为什么这个错误只在android上吗?
IOS 的工作就像一个魅力。
firebase.update(`/puzzle/${puzzleItem.idUser}/${currentItemKey}`, puzzleItem).then(
(resultUpdate) => {
this._ngZone.run(() => {
// FEEDBACK ERROR ??!!!
this.feedback.show({
message: "Easiest thing ever, right?"
});
this.refreshPuzzle(listIndexItemsClicked);
});
}
);
JS: ERROR Error: Uncaught (in promise): Error: android.view.InflateException: Binary XML file line #10: Binary XML file line #10: Error inflating class <unknown>
JS: (file:///node_modules/nativescript-feedback/feedback.js:17:0)
JS: at ZoneAwarePromise(file:///node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:902:0)
JS: at show(file:///node_modules/nativescript-feedback/feedback.js:15:0)
JS: at (file:///src/app/puzzle/puzzle.component.ts:384:50)
JS: at push.../node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js.ZoneDelegate.invoke(file:///node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:388:0)
JS: at onInvoke(file:///node_modules/@angular/core/fesm5/core.js:26256:0)
JS: at push.../node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js.ZoneDelegate.invoke(file:///node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:387:0)
JS: at push.../node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js.Zone.run(file:...
【问题讨论】:
-
发布您的
package.json的内容(有关版本不匹配和可能需要的版本更新,请参阅) -
另外,检查何时可以触发
firebase.update- 是否在此时呈现原生布局? -
更新工作正常,firebase 数据库中的字段已正确更新。该错误仅由 android 上的反馈插件引发。 this.feedback.show({ message: "最简单的事情,对吧?" });正如我在 IOS 上提到的,相同的代码就像一个魅力,不要抛出任何错误......请按照要求在 package.json 下方找到
-
看起来问题与从承诺中调用的插件有关 - 请参阅此线程 github.com/EddyVerbruggen/nativescript-feedback/issues/35
标签: nativescript feedback