Angular 无法生成Nativescript网页包
该项目正在愉快地使用tns运行的android构建 为了减少启动时间,我安装了 npm安装--保存开发人员nativescript开发人员网页包 npm安装 然后 tns运行android——捆绑包 并在误差以下。 ............. 失败:生成失败,出现异常Angular 无法生成Nativescript网页包,angular,webpack,nativescript,Angular,Webpack,Nativescript,该项目正在愉快地使用tns运行的android构建 为了减少启动时间,我安装了 npm安装--保存开发人员nativescript开发人员网页包 npm安装 然后 tns运行android——捆绑包 并在误差以下。 ............. 失败:生成失败,出现异常 出了什么问题: 无法向守护进程发送消息。 这是package.json { "nativescript": { "id": "com.business.bapp", "tns-android": {
- 出了什么问题: 无法向守护进程发送消息。
{
"nativescript": {
"id": "com.business.bapp",
"tns-android": {
"version": "4.2.0"
},
"tns-ios": {
"version": "4.2.0"
}
},
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"@angular/animations": "~6.1.0",
"@angular/common": "~6.1.0",
"@angular/compiler": "~6.1.0",
"@angular/core": "~6.1.0",
"@angular/forms": "~6.1.0",
"@angular/http": "~6.1.0",
"@angular/platform-browser": "~6.1.0",
"@angular/platform-browser-dynamic": "~6.1.0",
"@angular/router": "~6.1.0",
"nativescript-angular": "~6.1.0",
"nativescript-phone": "^1.4.0",
"nativescript-pro-ui": "^3.4.1",
"nativescript-theme-core": "~1.0.4",
"nativescript-ui-listview": "^3.7.2",
"reflect-metadata": "~0.1.8",
"rxjs": "~6.2.0",
"tns-core-modules": "~4.2.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/compiler-cli": "~6.1.0",
"@nativescript/schematics": "~0.3.0",
"@ngtools/webpack": "~6.2.0",
"mini-css-extract-plugin": "^0.4.4",
"nativescript-dev-typescript": "~0.7.0",
"nativescript-dev-webpack": "^0.17.0",
"typescript": "~2.7.2",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2"
},
"readme": "NativeScript Application"
}
nativescript pro ui
已弃用,请删除该选项,然后重试。我可以通过删除来解决此错误
“nativescript pro ui”:“^3.4.1”
来自package.json
{
"nativescript": {
"id": "com.business.bapp",
"tns-android": {
"version": "4.2.0"
},
"tns-ios": {
"version": "4.2.0"
}
},
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"@angular/animations": "~6.1.0",
"@angular/common": "~6.1.0",
"@angular/compiler": "~6.1.0",
"@angular/core": "~6.1.0",
"@angular/forms": "~6.1.0",
"@angular/http": "~6.1.0",
"@angular/platform-browser": "~6.1.0",
"@angular/platform-browser-dynamic": "~6.1.0",
"@angular/router": "~6.1.0",
"nativescript-angular": "~6.1.0",
"nativescript-phone": "^1.4.0",
"nativescript-pro-ui": "^3.4.1",
"nativescript-theme-core": "~1.0.4",
"nativescript-ui-listview": "^3.7.2",
"reflect-metadata": "~0.1.8",
"rxjs": "~6.2.0",
"tns-core-modules": "~4.2.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/compiler-cli": "~6.1.0",
"@nativescript/schematics": "~0.3.0",
"@ngtools/webpack": "~6.2.0",
"mini-css-extract-plugin": "^0.4.4",
"nativescript-dev-typescript": "~0.7.0",
"nativescript-dev-webpack": "^0.17.0",
"typescript": "~2.7.2",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2"
},
"readme": "NativeScript Application"
}
多亏了邮报。当我在读这篇文章时,马诺伊用同样的话回答。谢谢Manoj
但是现在与android.content.res.Resources$NotFoundException相关的另一个错误是:资源ID#0xFFFFF6
已出现,我可能会为此打开另一个帖子
资源错误的解决方案是