nativescript - 错误:android.view.InflateException 使用 nativescript 插件反馈
问题描述
这是关于这个插件的: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:...
解决方案
包.json
{
"nativescript": {
"id": "org.nativescript.help2help",
"tns-android": {
"version": "6.3.1"
},
"tns-ios": {
"version": "6.3.0"
}
},
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"scripts": {
"lint": "tslint \"src/**/*.ts\""
},
"dependencies": {
"@angular/animations": "~8.2.0",
"@angular/common": "~8.2.0",
"@angular/compiler": "~8.2.0",
"@angular/core": "~8.2.0",
"@angular/forms": "~8.2.0",
"@angular/platform-browser": "~8.2.0",
"@angular/platform-browser-dynamic": "~8.2.0",
"@angular/router": "~8.2.0",
"@nativescript/theme": "~2.2.1",
"@nstudio/nativescript-loading-indicator": "^3.0.1",
"@nstudio/nativescript-pulltorefresh": "^1.1.1",
"moment": "^2.24.0",
"nativescript-angular": "~8.20.3",
"nativescript-feedback": "^1.3.12",
"nativescript-plugin-firebase": "^10.3.3",
"nativescript-simple-libsodium": "^1.0.6",
"nativescript-ui-sidedrawer": "~8.0.0",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.4.0",
"tns-core-modules": "~6.3.0",
"zone.js": "~0.9.1"
},
"devDependencies": {
"@angular/compiler-cli": "~8.2.0",
"@ngtools/webpack": "^8.3.23",
"codelyzer": "~4.5.0",
"nativescript-dev-webpack": "~1.4.0",
"node-sass": "^4.7.1",
"tslint": "~5.19.0",
"typescript": "~3.5.3"
},
"gitHead": "...",
"readme": "NativeScript Application"
}
推荐阅读
- python - 如何使用 Python 脚本访问 Google Playstore API 以获取对我们应用程序的评论?
- typescript - 在 Vue 3 的 Jest 测试中模拟 vue-router 的 useRoute()
- java - 条件语句 If-Else Java 中的逻辑错误
- ibm-midrange - 使用电源中心连接到 AS400 上集成文件系统文件夹中的源
- angular - 页面离开时角度服务破坏
- postgresql - Prisma 查询联结表
- html - 不使用 object-fit 的 CSS 图像网格:cover
- karate - 如何在特征之间传递值而不调用特征
- python - Python问题:无法将本地结果存储在全局列表中
- spring-boot - 包含 GROUPBY 和 HAVING 的休眠自定义查询