错误:android.view.InflateException使用nativescript插件反馈

错误:android.view.InflateException使用nativescript插件反馈,nativescript,feedback,Nativescript,Feedback,关于这个插件: 有人知道为什么这个错误只在android上出现 IOS的工作非常有魅力 firebase.update(`/puzzle/${puzzleItem.idUser}/${currentItemKey}`, puzzleItem).then( (resultUpdate) => { this._ngZone.run(() => { // FEEDBACK ERROR ??!!!

关于这个插件:

有人知道为什么这个错误只在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:...
firebase.update(`/puzzle/${puzzitem.idUser}/${currentItemKey}`,puzzitem)。然后(
(resultUpdate)=>{
这个。_ngZone.run(()=>{
//反馈错误??!!!
这是我的反馈({
信息:“有史以来最简单的事情,对吗?”
});
此.refreshPuzzle(listIndexItemsClicked);
});
}
);
JS:ERROR-ERROR:Uncaught(承诺中):ERROR:android.view.InflateException:Binary-XML文件行#10:Binary-XML文件行#10:ERROR-inflating类
JS:(file:///node_modules/nativescript-feedback/feedback.js:17:0)
JS:在ZoneAwarePromise(file:///node_modules/@nativescript/angular/zone js/dist/zone nativescript.js:902:0)
JS:在展会上(file:///node_modules/nativescript-feedback/feedback.js:15:0)
JS:在(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:在onInvoke(file:///node_modules/@角度/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(文件:。。。
package.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"
}
{
“nativescript”:{
“id”:“org.nativescript.help2help”,
“tns安卓”:{
“版本”:“6.3.1”
},
“tns ios”:{
“版本”:“6.3.0”
}
},
“说明”:“NativeScript应用程序”,
“许可证”:“请参阅中的许可证”,
“存储库”:“,
“脚本”:{
“lint”:“tslint\”src/***/.ts\“
},
“依赖项”:{
“@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浏览器”:“~8.2.0”,
“@angular/platform browser dynamic”:“~8.2.0”,
“@angular/router”:“~8.2.0”,
“@nativescript/theme”:“~2.2.1”,
“@nstudio/nativescript加载指示器”:“^3.0.1”,
“@nstudio/nativescript pulltorefresh”:“^1.1.1”,
“时刻”:“^2.24.0”,
“nativescript angular”:“~8.20.3”,
“nativescript反馈”:“^1.3.12”,
“nativescript插件firebase”:“^10.3.3”,
“nativescript简单库”:“^1.0.6”,
“nativescript ui侧抽屉”:“~8.0.0”,
“反映元数据”:“~0.1.12”,
“rxjs”:“^6.4.0”,
“tns核心模块”:“~6.3.0”,
“zone.js”:“~0.9.1”
},
“依赖性”:{
“@angular/compiler cli”:“~8.2.0”,
“@ngtools/webpack”:“^8.3.23”,
“codelyzer”:“~4.5.0”,
“nativescript开发网页包”:“~1.4.0”,
“节点sass”:“^4.7.1”,
“tslint”:“~5.19.0”,
“类型脚本”:“~3.5.3”
},
“gitHead”:“…”,
“自述文件”:“NativeScript应用程序”
}

发布您的
包.json的内容(请参阅以了解版本不匹配和可能需要的版本更新)另外,检查何时可以触发
firebase.update
——此时是否呈现本机布局?更新工作正常,firebase数据库上的字段已正确更新。该错误仅由android上的反馈插件引发。this.feedback.show({消息:“有史以来最简单的事情,对吗?”);正如我在IOS上提到的,同样的代码工作起来就像一个符咒,不要抛出任何错误…请在下面的package.json As requested中查找与从承诺中调用插件相关的问题iis-参见此线程