Ionic Cordova构建失败

时间:2018-03-31 09:02:23

标签: android node.js cordova ionic-framework

我最近从崩溃的PC中恢复了我的离子源代码,并在安装了所需文件后尝试设置新的PC。我尝试构建项目,但收到如下错误。我一直在试图找出更新AndroidManifest.xml的位置和方式,以反映错误消息中的建议。任何帮助解决这个问题并建立我的项目都是值得欢迎的。

来自构建终端的

输出:'

  

建筑失败
总时间:2分钟19.549秒因故障:建造   没有例外。

  • 出了什么问题:任务执行失败':processDebugManifest'。
  

清单合并失败:属性meta-data#android.support.VERSION@value value =(25.4.0)from   [com.android.support:appcompat-v7:25.4.0] AndroidManifest.xml:28:13-35           也出现在[com.android.support:support-v4:26.1.0] AndroidManifest.xml:28:13-35 value =(26.1.0)。           建议:在AndroidManifest.xml:26:9-28:38中添加'tools:replace =“android:value”'以覆盖。

尝试:

  

使用--stacktrace选项运行以获取堆栈跟踪。使用--info运行   或--debug选项以获取更多日志输出。
(节点:8808)   UnhandledPromiseRejectionWarning:未处理的承诺拒绝   (拒绝ID:1):错误:cmd:命令失败,退出代码1错误   输出:注意:某些输入文件使用或覆盖已弃用的API。注意:   使用-Xlint重新编译:弃用以获取详细信息。注意:一些输入文件   使用或覆盖已弃用的API。注意:重新编译   -Xlint:弃用细节。 C:\ wamp64 \ WWW \ MYAPP \平台\机器人\ AndroidManifest.xml中:28:13-35   错误:           来自[com.android.support:appcompat-v7:25.4.0]的属性meta-data#android.support.VERSION@value value =(25.4.0)   AndroidManifest.xml中:28:13-35           也出现在[com.android.support:support-v4:26.1.0] AndroidManifest.xml:28:13-35 value =(26.1.0)。

建议:

  

将'tools:replace =“android:value”'添加到元素处   AndroidManifest.xml:26:9-28:38覆盖。

     

失败:构建因异常而失败。

  • 出了什么问题: 任务':processDebugManifest'执行失败。
  

清单合并失败:来自[com.android.support:appcompat-v7:25.4.0] AndroidManifest.xml:28:13-的属性meta-data#android.support.VERSION@value value =(25.4.0) 35           也出现在[com.android.support:support-v4:26.1.0] AndroidManifest.xml:28:13-35 value =(26.1.0)。建议:在AndroidManifest.xml:26:9-28:38中添加'tools:replace =“android:value”'来覆盖。   *尝试:
  使用--stacktrace选项运行以获取堆栈跟踪。使用--info运行   或--debug选项以获得更多日志输出。

package.json文件

    {
  "name": "myapp",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "4.4.3",
    "@angular/compiler": "4.4.3",
    "@angular/compiler-cli": "4.4.3",
    "@angular/core": "4.4.3",
    "@angular/forms": "4.4.3",
    "@angular/http": "4.4.3",
    "@angular/platform-browser": "4.4.3",
    "@angular/platform-browser-dynamic": "4.4.3",
    "@ionic-native/app-minimize": "^4.4.2",
    "@ionic-native/call-number": "^4.5.2",
    "@ionic-native/camera": "^4.5.2",
    "@ionic-native/core": "4.3.2",
    "@ionic-native/crop": "^4.3.2",
    "@ionic-native/deeplinks": "^4.5.2",
    "@ionic-native/fcm": "^4.3.2",
    "@ionic-native/file": "^4.3.2",
    "@ionic-native/file-chooser": "^4.3.2",
    "@ionic-native/file-path": "^4.3.2",
    "@ionic-native/file-transfer": "^4.3.2",
    "@ionic-native/firebase-dynamic-links": "^4.5.2",
    "@ionic-native/geolocation": "^4.4.2",
    "@ionic-native/image-picker": "^4.3.2",
    "@ionic-native/image-resizer": "^4.5.2",
    "@ionic-native/in-app-browser": "^4.3.3",
    "@ionic-native/keyboard": "^4.4.2",
    "@ionic-native/native-audio": "^4.4.2",
    "@ionic-native/native-page-transitions": "^4.5.2",
    "@ionic-native/sim": "^4.3.2",
    "@ionic-native/sms": "^4.5.2",
    "@ionic-native/social-sharing": "^4.5.2",
    "@ionic-native/splash-screen": "4.3.2",
    "@ionic-native/status-bar": "4.3.2",
    "@ionic/storage": "2.0.1",
    "angular4-paystack": "^2.0.0",
    "angularfire2": "^5.0.0-rc.3",
    "call-number": "^1.0.1",
    "chart.js": "^2.7.1",
    "com.synconset.imagepicker": "~2.1.8",
    "com.telerik.plugins.nativepagetransitions": "^0.6.5",
    "cordova-android": "~6.3.0",
    "cordova-plugin-appminimize": "^1.0.0",
    "cordova-plugin-camera": "^4.0.1",
    "cordova-plugin-compat": "^1.2.0",
    "cordova-plugin-crop": "^0.4.0",
    "cordova-plugin-device": "^1.1.4",
    "cordova-plugin-fcm": "^2.1.2",
    "cordova-plugin-file": "^4.3.3",
    "cordova-plugin-file-transfer": "^1.6.3",
    "cordova-plugin-filechooser": "^1.0.1",
    "cordova-plugin-filepath": "^1.1.0",
    "cordova-plugin-geolocation": "^4.0.1",
    "cordova-plugin-inappbrowser": "^1.7.1",
    "cordova-plugin-ionic-webview": "^1.1.16",
    "cordova-plugin-nativeaudio": "^3.0.9",
    "cordova-plugin-sim": "^1.3.3",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-statusbar": "^2.2.3",
    "cordova-plugin-telerik-imagepicker": "^2.1.8",
    "cordova-plugin-whitelist": "^1.3.1",
    "cordova-plugin-x-socialsharing": "^5.2.1",
    "cordova-support-google-services": "^1.0.0",
    "es6-promise-plugin": "^4.1.0",
    "firebase": "^4.6.0",
    "info.protonet.imageresizer": "^0.1.1",
    "ionic-angular": "3.7.1",
    "ionic-plugin-deeplinks": "^1.0.15",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionicons": "3.0.0",
    "moment": "^2.19.2",
    "mx.ferreyra.callnumber": "~0.0.2",
    "rxjs": "5.4.3",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.0.1",
    "typescript": "2.3.4"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "ionic-plugin-keyboard": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-sim": {},
      "com.synconset.imagepicker": {
        "PHOTO_LIBRARY_USAGE_DESCRIPTION": "select image"
      },
      "cordova-plugin-crop": {},
      "cordova-plugin-file": {},
      "cordova-plugin-filepath": {},
      "cordova-plugin-filechooser": {},
      "cordova-plugin-file-transfer": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-appminimize": {},
      "cordova-plugin-nativeaudio": {},
      "cordova-plugin-x-socialsharing": {},
      "mx.ferreyra.callnumber": {},
      "cordova-plugin-geolocation": {},
      "com.telerik.plugins.nativepagetransitions": {},
      "ionic-plugin-deeplinks": {
        "URL_SCHEME": "myappapp",
        "DEEPLINK_SCHEME": "https",
        "DEEPLINK_HOST": "myappmobile.firebaseapp.com",
        "ANDROID_PATH_PREFIX": "/myapppp",
        "ANDROID_2_PATH_PREFIX": "/",
        "ANDROID_3_PATH_PREFIX": "/",
        "ANDROID_4_PATH_PREFIX": "/",
        "ANDROID_5_PATH_PREFIX": "/",
        "DEEPLINK_2_SCHEME": " ",
        "DEEPLINK_2_HOST": " ",
        "DEEPLINK_3_SCHEME": " ",
        "DEEPLINK_3_HOST": " ",
        "DEEPLINK_4_SCHEME": " ",
        "DEEPLINK_4_HOST": " ",
        "DEEPLINK_5_SCHEME": " ",
        "DEEPLINK_5_HOST": " "
      },
      "info.protonet.imageresizer": {},
      "cordova-plugin-camera": {},
      "cordova-plugin-fcm": {},
      "cordova-plugin-compat": {}
    },
    "platforms": [
      "android"
    ]
  }
}    

0 个答案:

没有答案