在我的NativeScript应用程序中添加最新的Telerik UI插件后,我的BUILD失败并出现错误" 超出GC开销限制"。即使PLATFORM' REMOVE / ADD'只要我没有删除Telerik UI插件,命令就无法运行。
我想在我的应用中为sideDrawer组件设置Telerik UI插件。
构建失败的屏幕截图
tns环境的屏幕截图
package.json文件的代码
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "org.nativescript.bhramaan",
"tns-android": {
"version": "2.1.1"
}
},
"dependencies": {
"@angular/common": "2.0.0-rc.1",
"@angular/compiler": "2.0.0-rc.1",
"@angular/core": "2.0.0-rc.1",
"@angular/http": "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-plugin-firebase": "^3.0.1",
"nativescript-telerik-ui": "^1.2.0",
"tns-core-modules": "^2.1.0"
},
"devDependencies": {
"babel-traverse": "6.9.0",
"babel-types": "6.9.0",
"babylon": "6.8.0",
"filewalker": "0.1.2",
"lazy": "1.0.11",
"nativescript-dev-typescript": "^0.3.2",
"typescript": "^1.8.10"
}
}
任何猜测,可能出了什么问题?
------------------问题已修复------------------------ -----
经过大量的搜索和搜索终于打破了我的脑袋,设法成功构建我的应用程序。需要在我的app.gradle
dexOptions {
javaMaxHeapSize "4g"
}
因此。现在它就像
android {
defaultConfig {
generatedDensities = []
applicationId "org.nativescript.bhramaan"
multiDexEnabled true
}
aaptOptions {
additionalParameters "--no-version-vectors"
}
dexOptions {
javaMaxHeapSize "4g"
}
}