Ionic cordova build android --release not working


#1

Running app-scripts build: --platform android --target cordova

FAILED

FAILURE: Build failed with an exception.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 10s
at ChildProcess.whenDone (/Users/chikito/Sites/BlackLion/Ares/Android/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:567:12)
(node:20889) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:20889) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

PACAGE.JSON

{
“name”: “AresApp”,
“version”: “1.0.1”,
“author”: “Ionic Framework”,
“homepage”: “http://ionicframework.com/”,
“private”: true,
“SENDER_ID”: “1052269236655”,
“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/animations”: “5.2.10”,
@angular/common”: “5.2.10”,
@angular/compiler”: “5.2.10”,
@angular/compiler-cli”: “5.2.10”,
@angular/core”: “5.2.10”,
@angular/forms”: “5.2.10”,
@angular/http”: “5.2.10”,
@angular/platform-browser”: “5.2.10”,
@angular/platform-browser-dynamic”: “5.2.10”,
@ionic-native/barcode-scanner”: “^4.7.0”,
@ionic-native/calendar”: “^4.7.0”,
@ionic-native/camera”: “^4.7.0”,
@ionic-native/core”: “4.7.0”,
@ionic-native/facebook”: “^4.7.0”,
@ionic-native/file”: “^4.7.0”,
@ionic-native/file-path”: “^4.7.0”,
@ionic-native/file-transfer”: “^4.7.0”,
@ionic-native/in-app-browser”: “^4.7.0”,
@ionic-native/keyboard”: “^4.7.0”,
@ionic-native/photo-viewer”: “^4.7.0”,
@ionic-native/push”: “^4.7.0”,
@ionic-native/splash-screen”: “^4.7.0”,
@ionic-native/status-bar”: “4.7.0”,
@ionic-native/transfer”: “^3.14.0”,
@ionic/storage”: “2.1.3”,
“com-sarriaroman-photoviewer”: “~1.1.16”,
“cordova-android”: “^6.4.0”,
“cordova-android-play-services-gradle-release”: “^1.1.3”,
“cordova-plugin-calendar”: “^4.6.0”,
“cordova-plugin-camera”: “~2.4.1”,
“cordova-plugin-console”: “^1.0.5”,
“cordova-plugin-device”: “^2.0.2”,
“cordova-plugin-facebook4”: “~1.10.1”,
“cordova-plugin-fcm”: “^2.1.2”,
“cordova-plugin-file”: “~6.0.1”,
“cordova-plugin-file-transfer”: “~1.7.1”,
“cordova-plugin-filepath”: “^1.3.0”,
“cordova-plugin-inappbrowser”: “~2.0.2”,
“cordova-plugin-ionic-keyboard”: “^2.0.5”,
“cordova-plugin-ionic-webview”: “^1.2.1”,
“cordova-plugin-splashscreen”: “^5.0.2”,
“cordova-plugin-statusbar”: “^2.2.2”,
“cordova-plugin-whitelist”: “^1.3.3”,
“cordova-sqlite-storage”: “^2.0.4”,
“intl”: “^1.2.5”,
“ionic-angular”: “3.9.2”,
“ionic-plugin-keyboard”: “^2.2.1”,
“ionic2-calendar”: “^0.4.3”,
“ionicons”: “3.0.0”,
“ngx-qrcode2”: “^0.1.0”,
“phonegap-plugin-barcodescanner”: “~6.0.8”,
“phonegap-plugin-push”: “~2.2.1”,
“rxjs”: “5.5.10”,
“sw-toolbox”: “3.6.0”,
“zone.js”: “0.8.26”
},
“devDependencies”: {
@ionic/app-scripts”: “3.1.9”,
“typescript”: “~2.6.2”
},
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“cordova-plugin-whitelist”: {},
“cordova-plugin-device”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-ionic-webview”: {},
“cordova-plugin-ionic-keyboard”: {},
“phonegap-plugin-barcodescanner”: {
“CAMERA_USAGE_DESCRIPTION”: " "
},
“cordova-plugin-calendar”: {
“CALENDAR_USAGE_DESCRIPTION”: " "
},
“cordova-plugin-camera”: {
“CAMERA_USAGE_DESCRIPTION”: “Nos permite accesar a tu camara para que eligas que foto de perfil usar.”,
“PHOTOLIBRARY_USAGE_DESCRIPTION”: “Nos permite usar tu librería para que eligas que foto de perfil usar.”
},
“cordova-plugin-facebook4”: {
“APP_ID”: “224486148048365”,
“APP_NAME”: “Ares”
},
“cordova-plugin-file”: {},
“cordova-plugin-filepath”: {},
“cordova-plugin-file-transfer”: {},
“cordova-plugin-inappbrowser”: {},
“com-sarriaroman-photoviewer”: {},
“phonegap-plugin-push”: {},
“cordova-sqlite-storage”: {},
“cordova-plugin-console”: {},
“cordova-plugin-statusbar”: {},
“ionic-plugin-keyboard”: {},
“cordova-android-play-services-gradle-release”: {
“PLAY_SERVICES_VERSION”: “10”
},
“cordova-plugin-fcm”: {}
}
}
}

npm -> 5.6.0
node -> v8.11.1
ionic -> 3.20.0