无法在Android模拟器上运行Nativescript项目

时间:2020-07-16 15:40:25

标签: android nativescript angular2-nativescript nativescript-angular

当我尝试在Android模拟器中使用Angular项目运行NativeScript时,出现了下一条错误消息:

任务':app:processDebugResources'的执行失败。安卓 资源链接失败AAPT:错误:资源样式/ AppThemeBase21 (aka com.aeroviajespacifico.viajesilisto:style / AppThemeBase21)不 找到了。错误:链接引用失败。无法在上应用更改 设备:emulator-5554。错误是:命令gradlew.bat失败,退出 代码1。

但是,当同事在另一台计算机上运行该项目时,他没有任何问题。我们有完全相同的克隆项目。

这是package.json信息:

   "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.3.3",
    "@nstudio/nativescript-cardview": "^1.0.0",
    "@nstudio/nativescript-checkbox": "^1.0.0",
    "nativescript-akylas-themes": "^2.0.2",
    "nativescript-angular": "~8.21.0",
    "nativescript-appversion": "^1.4.4",
    "nativescript-drop-down": "^5.0.6",
    "nativescript-feedback": "^1.3.12",
    "nativescript-google-maps-sdk": "^2.9.1",
    "nativescript-plugin-firebase": "^10.5.2",
    "nativescript-range-seek-bar": "^1.0.3",
    "nativescript-ui-calendar": "^6.1.0",
    "nativescript-ui-listview": "^8.2.0",
    "nativescript-ui-sidedrawer": "~8.0.0",
    "reflect-metadata": "~0.1.12",
    "rxjs": "^6.4.0",
    "tns-core-modules": "~6.5.0",
    "zone.js": "~0.9.1"
  },
  "devDependencies": {
    "@angular/cli": "^9.1.7",
    "@angular/compiler-cli": "~8.2.0",
    "@nativescript/schematics": "^1.0.0",
    "@ngtools/webpack": "~8.2.0",
    "codelyzer": "~4.5.0",
    "nativescript-dev-webpack": "~1.5.1",
    "node-sass": "^4.7.1",
    "tns-platform-declarations": "^6.5.2",
    "tslint": "~5.19.0",
    "typescript": "~3.5.3"
  },

感谢您的帮助!

0 个答案:

没有答案