我正在构建一个 NativeScript 应用程序。为了实现抽屉,我正在尝试使用“Telerik NativeScript UI”插件。但是,安装插件后有些东西不起作用,我的 NativeScript 构建失败了。
这是构建失败的 2 个屏幕截图。
我的 package.json 文件内容
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "org.nativescript.testapp",
"tns-android": {
"version": "2.0.0"
}
},
"dependencies": {
"@angular/common": "2.0.0-rc.1",
"@angular/compiler": "2.0.0-rc.1",
"@angular/core": "2.0.0-rc.1",
"@angular/platform-browser": "2.0.0-rc.1",
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
"@angular/platform-server": "2.0.0-rc.1",
"@angular/router-deprecated": "2.0.0-rc.1",
"nativescript-angular": "0.1.1",
"nativescript-telerik-ui": "^1.1.1",
"tns-core-modules": "^2.0.0"
},
"devDependencies": {
"babel-traverse": "6.9.0",
"babel-types": "6.10.2",
"babylon": "6.8.1",
"filewalker": "0.1.2",
"lazy": "1.0.11",
"nativescript-dev-typescript": "^0.3.2",
"typescript": "^1.8.10"
}
}
我的 NativeScript CLI 版本是 2.0.1
任何想法,可能出了什么问题?
--------已修复-----
解决方案是,得到错误后..
不要删除插件
移除平台(android/ios)
再次添加平台(android/ios)
重建应用程序