当前位置: 首页 > 知识库问答 >
问题:

离子封装构建失败-离子角工具包

唐焕
2023-03-14

构建错误,即使几次尝试从零开始清理系统。

问题:检测源问题并修复它的最佳程序是什么。

构建命令

Ionic cordova build Android错误

ng.cmd运行app:ionic-cordova-build--platform=android发生了一个未处理的异常:找不到builder@ionic/angull-toolkit:cordova-build的实现,请参阅“c:\users\username\appdata\local\temp\ng-dhzayc\angull-errors.log”以获得更多详细信息。[ERROR]运行子进程ng时出错。

    ng.cmd run app:ionic-cordova-build --platform=android exited with exit code 127.

    Re-running this command with the --verbose flag may provide more information.

系统信息

科尔多瓦:

Cordova CLI:10.0.0 Cordova平台:6.0.0,android 9.0.0,浏览器,ios 5.1.1 Cordova插件:Cordova-plugin-ionic-keyboard2.2.0,cordova-plugin-ionic-webview 3.1.2(和22个其他插件)

效用:

{   "name": "myapp",   "version": "0.0.30",   "author": "",   "homepage": "",   "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e",
    "ionic:build-obsolet": "ionic-app-scripts build android --release --prod  --wwwDir www --buildDir build"   },   "private": true,   "dependencies": {
    "@angular-devkit/build-angular": "^0.1001.4",
    "@angular/common": "^11.0.0-next.4",
    "@angular/core": "^11.0.0-next.4",
    "@angular/fire": "^5.1.3",
    "@angular/forms": "^11.0.0-next.4",
    "@angular/http": "^7.2.2",
    "@angular/platform-browser": "^11.0.0-next.4",
    "@angular/platform-browser-dynamic": "^11.0.0-next.4",
    "@angular/router": "^11.0.0-next.4",
    "@ionic-native/android-permissions": "^5.11.0",
    "@ionic-native/app-version": "^5.9.0",
    "@ionic-native/calendar": "^5.9.0",
    "@ionic-native/camera": "^5.23.0",
    "@ionic-native/core": "^5.21.0",
    "@ionic-native/device": "^5.11.0",
    "@ionic-native/email-composer": "^5.15.1",
    "@ionic-native/fcm": "^5.15.1",
    "@ionic-native/firebase": "^5.5.1",
    "@ionic-native/firebase-x": "^5.24.0",
    "@ionic-native/http": "^5.24.0",
    "@ionic-native/image-picker": "^5.9.0",
    "@ionic-native/in-app-browser": "^5.13.0",
    "@ionic-native/is-debug": "^5.23.0",
    "@ionic-native/keyboard": "^5.9.0",
    "@ionic-native/native-storage": "^5.10.0",
    "@ionic-native/network": "^5.11.0",
    "@ionic-native/open-native-settings": "^5.8.0",
    "@ionic-native/qr-scanner": "^5.6.1",
    "@ionic-native/screenshot": "^5.9.0",
    "@ionic-native/social-sharing": "^5.9.0",
    "@ionic-native/splash-screen": "^5.0.0",
    "@ionic-native/status-bar": "^5.0.0",
    "@ionic/angular": "^4.5.0",
    "@ionic/storage": "^2.2.0",
    "@types/chart.js": "^2.8.5",
    "@types/cordova": "0.0.34",
    "ajv": "^6.10.0",
    "angularfire2": "^5.1.3",
    "animejs": "^3.0.1",
    "calendar-utils": "^0.3.1",
    "chart.js": "^2.8.0",
    "com.darktalker.cordova.screenshot": "^0.1.6",
    "cordova-android": "^9.0.0",
    "cordova-browser": "^6.0.0",
    "cordova-ios": "^5.1.1",
    "cordova-open-native-settings": "^1.5.2",
    "cordova-plugin-add-swift-support": "^2.0.2",
    "cordova-plugin-advanced-http": "^2.2.0",
    "cordova-plugin-android-permissions": "^1.0.2",
    "cordova-plugin-androidx": "^1.0.2",
    "cordova-plugin-androidx-adapter": "^1.1.0",
    "cordova-plugin-app-version": "^0.1.9",
    "cordova-plugin-calendar": "^5.1.4",
    "cordova-plugin-camera": "^4.1.0",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-email-composer": "^0.9.2",
    "cordova-plugin-file": "^6.0.2",
    "cordova-plugin-firebasex": "^7.0.0",
    "cordova-plugin-inappbrowser": "^3.1.0",
    "cordova-plugin-ionic-keyboard": "^2.1.3",
    "cordova-plugin-ionic-webview": "^3.1.2",
    "cordova-plugin-is-debug": "^1.0.0",
    "cordova-plugin-qrscanner": "^3.0.1",
    "cordova-plugin-safariviewcontroller": "^1.6.0",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-telerik-imagepicker": "^2.3.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-plugin-x-socialsharing": "^5.4.7",
    "cordova-res": "^0.15.1",
    "cordova-sqlite-storage": "^3.2.1",
    "core-js": "^2.5.4",
    "errorhandler": "^1.5.1",
    "es6-promise-plugin": "^4.2.2",
    "firebase": "^7.22.0",
    "firebase-admin": "^9.2.0",
    "g": "^2.0.1",
    "guid-typescript": "^1.0.9",
    "ionic2-calendar": "^0.5.7",
    "lab": "18.0.2",
    "native-run": "^0.2.7",
    "rxjs": "^6.5.3",
    "signal-exit": "^3.0.2",
    "web": "0.0.2",
    "xcode": "^2.0.0",
    "zone.js": "~0.10.3"   },   "devDependencies": {
    "@angular-devkit/architect": "^0.1001.4",
    "@angular-devkit/core": "^10.1.4",
    "@angular-devkit/schematics": "^10.1.4",
    "@angular/cli": "11.0.0-next.4",
    "@angular/compiler": "~11.0.0-next.4",
    "@angular/compiler-cli": "~11.0.0-next.4",
    "@angular/language-service": "~11.0.0-next.4",
    "@ionic/angular-toolkit": "^1.4.1",
    "@ionic/lab": "^3.2.9",
    "@types/jasmine": "~2.8.8",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~10.12.0",
    "codelyzer": "~4.5.0",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~5.2.3",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "node-sass": "^4.12.0",
    "protractor": "~7.0.0",
    "ts-node": "~8.0.0",
    "tslint": "~6.1.3",
    "typescript": "^4.0.3"   },   "description": "An Ionic project",   "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {
        "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
      },
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-qrscanner": {},
      "cordova-open-native-settings": {},
      "cordova-sqlite-storage": {},
      "cordova-plugin-telerik-imagepicker": {
        "PHOTO_LIBRARY_USAGE_DESCRIPTION": " edit user profile "
      },
      "cordova-plugin-calendar": {
        "CALENDAR_USAGE_DESCRIPTION": " add party event to calendar ",
        "CONTACTS_USAGE_DESCRIPTION": " add contact to user "
      },
      "cordova-plugin-app-version": {},
      "com.darktalker.cordova.screenshot": {},
      "cordova-plugin-x-socialsharing": {
        "ANDROID_SUPPORT_V4_VERSION": "24.1.1+"
      },
      "cordova-plugin-safariviewcontroller": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-advanced-http": {
        "OKHTTP_VERSION": "3.10.0"
      },
      "cordova-plugin-email-composer": {
        "ANDROID_SUPPORT_V4_VERSION": "27.+"
      },
      "cordova-plugin-android-permissions": {},
      "cordova-plugin-firebasex": {
        "ANDROID_FIREBASE_ANALYTICS_VERSION": "17.0.0",
        "FIREBASE_ANALYTICS_COLLECTION_ENABLED": "true",
        "FIREBASE_PERFORMANCE_COLLECTION_ENABLED": "true",
        "FIREBASE_CRASHLYTICS_COLLECTION_ENABLED": "true",
        "ANDROID_ICON_ACCENT": "#FF00FFFF",
        "ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION": "17.0.0",
        "ANDROID_FIREBASE_MESSAGING_VERSION": "20.0.0",
        "ANDROID_FIREBASE_CONFIG_VERSION": "19.0.3",
        "ANDROID_FIREBASE_PERF_VERSION": "19.0.1",
        "ANDROID_FIREBASE_AUTH_VERSION": "19.1.0",
        "ANDROID_CRASHLYTICS_VERSION": "2.10.1",
        "ANDROID_CRASHLYTICS_NDK_VERSION": "2.1.1"
      },
      "cordova-plugin-camera": {
        "ANDROID_SUPPORT_V4_VERSION": "27.+"
      },
      "cordova-plugin-is-debug": {}
    },
    "platforms": [
      "browser",
      "android",
      "ios"
    ]   } }
ionic repair
npm i @angular-devkit/architect@latest @angular-devkit/build-angular@latest @angular-devkit/core@latest @angular-devkit/schematics@latest

npm uninstall -g @angular/cli
npm cache verify
npm install -g @angular/cli@latest
npm install

npm i @ionic/angular-toolkit

npm audit fix
npm audit fix --force


npm update
ng update
ng update @angular/cli
ng update @angular/core

离子服务离子服务的其他错误信息:

[ng] Schema validation failed with the following errors:
[ng]   Data path "" should NOT have additional properties(es5BrowserSupport).

[ERROR] ng has unexpectedly closed (exit code 1).

        The Ionic CLI will exit. Please check any output above for error details.

共有1个答案

通鸿风
2023-03-14

根据这个翻折误差;

[ng] Schema validation failed with the following errors:
[ng]   Data path "" should NOT have additional properties(es5BrowserSupport).

您应该编辑Angular.json文件,找到“es5browsersupport”:true false并删除它。

ES5BrowserSupport选项是一个不推荐使用的选项,用于控制针对ES5的构建是否包括用于较旧浏览器的单独的、有条件加载的polyfill。它是全差分负载支持的前身,已经被移除。

 类似资料:
  • 无法生成ionic cordova build android--prod配置项目时出现问题:app'。 未指定compileSdkVersion。请将其添加到构建中。格拉德尔 build.gradle(app) /*根据一个或多个投稿者许可协议授权给Apache软件基金会(ASF)。有关版权所有权的更多信息,请参阅随本作品一起分发的通知文件。ASF根据Apache许可证2.0版(以下简称“许可证

  • 我很困惑。jdk,sdk,ant,cordova,ionic做得很好,为什么会出错? 我到处搜索,但没有答案。 我猜有一个错误版本? 谁能帮这个忙? 系统:win8 jdk:1.8 ant:1.96 android:22 路径 错误

  • 我在做离子4, 在那里我试图创建构建Android上使用 但是为Android创建构建失败了,原因如下 Android Studio项目检测到Android_HOME=/Users/user/Library/Android/sdk JAVA_HOME=/Library/JAVA/JavaVirtualMachines/jdk-11。jdk 1.8的jdk/Contents/Home需求检查失败 j

  • 我想连接到http://api.themoviedb.org,以便执行GET请求。由于我使用的浏览器(离子服务-l)我得到CORS错误。为了避免CORS错误,我尝试使用JSONP,但没有成功。 以下是我所做的: > 从'@角/公共/超文本传输协议'导入{HttpClientModuelHttpClientJsonpModuel}; ... 导入:[BrowserModuelIonicModule.

  • 问题内容: 我正在通过sudo npm install ionic -g安装ionic 并得到以下错误 离子论坛中也列出了该问题:-https: //forum.ionicframework.com/t/installing-ionic-not- successful-solved/36050/7 我曾尝试多次更改节点,npm,cordova版本,但是每次遇到此错误时,我都认为这与版本无关。在某些