Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70433

Unable to build for Android - Ionic V3

$
0
0

@zersystech wrote:

Hello All, I am facing an issue where I am unable to build my app for android, my ionic info is as follows

Ionic:
ionic (Ionic CLI) : 4.2.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.4

Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4, ios 5.1.1
Cordova Plugins : cordova-plugin-ionic 5.4.7, cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.0, (and 15 other plugins)

System:
ios-deploy : 1.10.0
ios-sim : 8.0.2
NodeJS : v12.13.1 (/usr/local/Cellar/node/13.6.0/bin/node)
npm : 6.12.1
OS : macOS
Xcode : Xcode 11.2.1 Build version 11B500

My package.json is

{
“name”: “kawasaki”,
“version”: “0.0.1”,
“author”: " India Kawasaki Motors",
“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”,
“preinstall”: “./cordovaOverride.sh”
},
“dependencies”: {
@agm/core”: “1.0.0-beta.3”,
@angular/animations”: “^5.2.11”,
@angular/common”: “5.2.11”,
@angular/compiler”: “5.2.11”,
@angular/compiler-cli”: “5.2.11”,
@angular/core”: “5.2.11”,
@angular/forms”: “5.2.11”,
@angular/http”: “5.2.11”,
@angular/platform-browser”: “5.2.11”,
@angular/platform-browser-dynamic”: “5.2.11”,
@ionic-native/app-version”: “^4.7.0”,
@ionic-native/camera”: “^4.7.0”,
@ionic-native/core”: “4.7.0”,
@ionic-native/device”: “^4.7.0”,
@ionic-native/diagnostic”: “^4.7.0”,
@ionic-native/fcm”: “^4.20.0”,
@ionic-native/file”: “^4.9.0”,
@ionic-native/file-transfer”: “^4.9.0”,
@ionic-native/geolocation”: “^4.7.0”,
@ionic-native/network”: “^4.7.0”,
@ionic-native/splash-screen”: “4.7.0”,
@ionic-native/sqlite”: “^4.7.0”,
@ionic-native/status-bar”: “^4.7.0”,
@ionic/pro”: “^2.0.4”,
@ionic/storage”: “2.1.3”,
@types/lodash”: “4.14.116”,
@types/moment”: “^2.13.0”,
“agm-direction”: “^0.6.0”,
“bugsnag-angular”: “^2.0.1”,
“bugsnag-js”: “^4.7.2”,
“cordova-android”: “7.1.4”,
“cordova-android-support-gradle-release”: “^3.0.1”,
“cordova-ios”: “5.1.1”,
“cordova-plugin-app-version”: “^0.1.9”,
“cordova-plugin-camera”: “^4.1.0”,
“cordova-plugin-compat”: “^1.2.0”,
“cordova-plugin-device”: “^2.0.3”,
“cordova-plugin-dialogs”: “^2.0.2”,
“cordova-plugin-fcm-with-dependecy-updated”: “^4.6.4”,
“cordova-plugin-file”: “^6.0.2”,
“cordova-plugin-file-transfer”: “^1.7.1”,
“cordova-plugin-geolocation”: “^4.0.2”,
“cordova-plugin-ionic”: “^5.4.7”,
“cordova-plugin-ionic-keyboard”: “^2.2.0”,
“cordova-plugin-ionic-webview”: “^4.2.0”,
“cordova-plugin-network-information”: “^2.0.2”,
“cordova-plugin-splashscreen”: “^5.0.3”,
“cordova-plugin-statusbar”: “^2.4.3”,
“cordova-plugin-whitelist”: “^1.3.4”,
“cordova-plugin-zip”: “^3.1.0”,
“cordova-sqlite-storage”: “^2.6.0”,
“cordova.plugins.diagnostic”: “^4.0.12”,
“emulator”: “0.1.0”,
“ionic-angular”: “3.9.2”,
“ionicons”: “3.0.0”,
“lodash”: “^4.17.15”,
“moment”: “^2.22.2”,
“parse”: “^1.11.1”,
“platform”: “1.3.5”,
“rxjs”: “5.5.11”,
“sw-toolbox”: “3.6.0”,
“web-animations-js”: “^2.3.1”,
“zone.js”: “0.8.26”
},
“devDependencies”: {
@ionic/app-scripts”: “^3.2.4”,
“typescript”: “~2.6.2”
},
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“cordova-plugin-whitelist”: {},
“cordova-plugin-device”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-ionic-webview”: {
“ANDROID_SUPPORT_ANNOTATIONS_VERSION”: “27.+”
},
“cordova-plugin-ionic-keyboard”: {},
“cordova-plugin-file”: {},
“cordova-plugin-file-transfer”: {},
“cordova-plugin-zip”: {},
“cordova-plugin-dialogs”: {},
“cordova.plugins.diagnostic”: {
“ANDROID_SUPPORT_VERSION”: “28.+”
},
“cordova-plugin-network-information”: {},
“cordova-sqlite-storage”: {},
“cordova-plugin-geolocation”: {
“GEOLOCATION_USAGE_DESCRIPTION”: “To locate you”
},
“cordova-plugin-app-version”: {},
“cordova-plugin-statusbar”: {},
“cordova-plugin-camera”: {
“ANDROID_SUPPORT_V4_VERSION”: “27.+”
},
“cordova-plugin-ionic”: {
“APP_ID”: “d00f39b4”,
“CHANNEL_NAME”: “DEV_UAT”,
“UPDATE_METHOD”: “none”,
“MAX_STORE”: “2”,
“MIN_BACKGROUND_DURATION”: “30”,
“UPDATE_API”: “https://api.ionicjs.com
},
“cordova-plugin-fcm-with-dependecy-updated”: {},
“cordova-android-support-gradle-release”: {
“ANDROID_SUPPORT_VERSION”: “27.+”
}
},
“platforms”: [
“ios”,
“android”
]
}
}

But when I run ionic cordova build android, I get an error as shown below.

BUILD SUCCESSFUL in 5s
46 actionable tasks: 3 executed, 43 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Already finished

* 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 5s
/Applications/MAMP/htdocs/IKM-Production/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Already finished

* 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 5s
[ERROR] An error occurred while running subprocess cordova.
        
        cordova build android exited with exit code 1.
        
        Re-running this command with the --verbose flag may provide more information.


I am unable to understand why, can somebody please help. The build was working fine until last week.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70433

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>