-
I have always built in the cloud, haven’t tried locally yet
-
I use the following command to build:
ionic package build android --profile gc_mobile_prod --release
-
See file contents at the end of this post
-
I have tried different versions of cordova-android, however when building in the cloud using ionic build it seems to always use cordova-android@6.2.3. It doesn’t seem as if one can influence this with your local set ups and installed versions
Ionic info:
Cordova CLI: 7.0.0
Ionic Framework Version: 3.1.1
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 3.19
Node Version: v7.4.0
Xcode version: Not installed
package.json content:
{
“name”: “ionic-hello-world”,
“author”: “Ionic Framework”,
“homepage”: “http://ionicframework.com/”,
“private”: true,
“scripts”: {
“build”: “ionic-app-scripts build”,
“watch”: “ionic-app-scripts watch”,
“serve:before”: “watch”,
“emulate:before”: “build”,
“deploy:before”: “build”,
“build:before”: “build”,
“run:before”: “build”
},
“config”: {
“ionic_copy”: “./scripts/copy-custom-libs.js”
},
“dependencies”: {
"@angular/common": “4.0.2”,
"@angular/compiler": “4.0.2”,
"@angular/compiler-cli": “4.0.2”,
"@angular/core": “4.0.2”,
"@angular/forms": “4.0.2”,
"@angular/http": “4.0.2”,
"@angular/platform-browser": “4.0.2”,
"@angular/platform-browser-dynamic": “4.0.2”,
"@angular/platform-server": “^2.2.1”,
"@ionic-native/barcode-scanner": “^3.5.0”,
"@ionic-native/core": “^3.6.1”,
"@ionic-native/network": “^3.6.1”,
"@ionic-native/splash-screen": “3.4.2”,
"@ionic-native/status-bar": “3.4.2”,
"@ionic/cloud-angular": “^0.12.0”,
"@ionic/storage": “2.0.1”,
“chart.js”: “^2.5.0”,
“cordova-android”: “^6.1.2”,
“font-awesome”: “^4.7.0”,
“ionic-angular”: “3.1.1”,
“ionic-native”: “2.2.11”,
“ionicons”: “3.0.0”,
“ng2-charts”: “^1.5.0”,
“rxjs”: “5.1.1”,
“sw-toolbox”: “3.4.0”,
“zone.js”: “^0.8.5”,
“cordova-plugin-console”: “~1.0.4”,
“cordova-plugin-device”: “~1.1.3”,
“cordova-plugin-network-information”: “~1.3.3”,
“cordova-plugin-splashscreen”: “~4.0.0”,
“cordova-plugin-statusbar”: “~2.2.0”,
“cordova-plugin-whitelist”: “~1.3.0”,
“ionic-plugin-deploy”: “~0.6.6”,
“ionic-plugin-keyboard”: “~2.2.1”,
“phonegap-plugin-barcodescanner”: “~6.0.6”
},
“devDependencies”: {
"@ionic/app-scripts": “1.3.4”,
“typescript”: “~2.2.1”
},
“description”: “myGCMobile: A GrandCentral Project”,
“cordovaPlugins”: [
“cordova-plugin-device”,
“cordova-plugin-console”,
“cordova-plugin-whitelist”,
“cordova-plugin-splashscreen”,
“cordova-plugin-statusbar”,
“ionic-plugin-keyboard”
],
“cordovaPlatforms”: [],
“cordova”: {
“plugins”: {
“cordova-plugin-console”: {},
“cordova-plugin-device”: {},
“cordova-plugin-network-information”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-statusbar”: {},
“cordova-plugin-whitelist”: {},
“ionic-plugin-deploy”: {},
“ionic-plugin-keyboard”: {},
“phonegap-plugin-barcodescanner”: {
“CAMERA_USAGE_DESCRIPTION”: " "
}
},
“platforms”: [
“android”
]
}
}