0

当我使用“tns run android --emulator”运行应用程序时,遇到以下错误

在设备 emulator-5554 上成功同步应用程序 org.nativescript.ema。ActivityManager:为活动 org.nativescript.ema/com.tns.NativeScriptActivity 启动 proc 1005:org.nativescript.ema/u0a90 JS:Sam 活动事件:activityCreated,活动:com.tns.NativeScriptActivity@2689395,捆绑:空 JS:已启动具有以下意图的 Android 应用程序:Intent { flg=0x10000000 cmp=org.nativescript.ema/com.tns.NativeScriptActivity }。JS:引导程序:错误引导角度 JS:引导程序:StaticInjectorError(AppModule)[EffectSources -> ErrorHandler]:JS:
StaticInjectorError(平台:核心)[EffectSources -> ErrorHandler]:JS:NullInjectorError:没有ErrorHandler的提供者!JS:JS:错误:NullInjectorError:没有ErrorHandler的提供者!JS:在 NullInjector.get (file:///data/data/org.nativescript.ema/files/app/tns_modules/@angular/core/bundles/core.umd.js:1035:19) [角度] JS:在 resolveToken (file:///data/data/org.nativescript.ema/files/app/tns_modules/@angular/core/bundles/core.umd.js:1279:24) [angular] JS: 在 tryResolveToken (file :///data/data/org.nativescript.ema/files/app/tns_modules/@angular/core/bundles/core.umd.js:1224:16) [angular] JS: 在 StaticInjector.get (file:/ //data/data/org.nativescript.ema/files/app/tns_modules/@angular/core/bundles/core.umd.js:1119:20) [angular] JS: 在 resolveToken (file:///data/数据/org.nativescript。

这是我的 package.json 文件

{
  "name": "ema",
  "description": "Employer Maid Agency",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "org.nativescript.ema",
    "tns-android": {
      "version": "4.1.2"
    }
  },
  "dependencies": {
    "@angular/animations": "^6.0.4",
    "@angular/common": "^6.0.4",
    "@angular/compiler": "^6.0.4",
    "@angular/core": "^6.0.4",
    "@angular/http": "^6.0.4",
    "@angular/platform-browser": "^6.0.4",
    "@angular/platform-browser-dynamic": "^6.0.4",
    "@angular/router": "^6.0.4",
    "@ngrx/effects": "^6.0.1",
    "@ngrx/store": "^6.0.1",
    "nativescript-angular": "^6.0.0",
    "nativescript-background-http": "^3.2.7",
    "nativescript-camera": "^4.0.2",
    "nativescript-fancyalert": "^1.2.0",
    "nativescript-feedback": "^1.2.0",
    "nativescript-loading-indicator": "^2.4.0",
    "nativescript-ngx-fonticon": "^4.2.0",
    "nativescript-snackbar": "^3.1.0",
    "nativescript-theme-core": "^1.0.4",
    "ramda": "^0.25.0",
    "reflect-metadata": "~0.1.10",
    "rxjs": "^6.2.0",
    "rxjs-compat": "^6.2.0",
    "tns-core-modules": "^4.1.0",
    "zone.js": "~0.8.18"
  },
  "devDependencies": {
    "@angular-devkit/core": "^0.6.8",
    "@angular/compiler-cli": "^6.0.4",
    "@ngtools/webpack": "^6.0.8",
    "babel-traverse": "^6.26.0",
    "babel-types": "^6.26.0",
    "babylon": "^6.18.0",
    "clean-webpack-plugin": "~0.1.19",
    "copy-webpack-plugin": "^4.5.1",
    "css-loader": "^0.28.11",
    "extract-text-webpack-plugin": "^3.0.2",
    "lazy": "^1.0.11",
    "nativescript-dev-typescript": "^0.7.1",
    "nativescript-dev-webpack": "^0.12.0",
    "nativescript-worker-loader": "^0.9.0",
    "raw-loader": "^0.5.1",
    "resolve-url-loader": "^2.3.0",
    "sass-loader": "^7.0.3",
    "typescript": "~2.7.2",
    "uglifyjs-webpack-plugin": "^1.2.5",
    "webpack": "^4.12.0",
    "webpack-bundle-analyzer": "^2.13.1",
    "webpack-cli": "~2.1.3",
    "webpack-sources": "^1.1.0"
  }
}

我尝试在线搜索解决方案,但似乎以前从未报告过。我整个上午都在挣扎,但我不是要解决它。如果您确实需要源代码,请告诉我。

如果您能指导我“在哪里”调查,我将不胜感激。

提前致谢。

4

0 回答 0