Build --release not working

Hi everyone,

Has anyone ever been stuck trying to build with --release?

ionic cordova build android --release --prod

I have reinstalled node and ionic … I can generate the apk without the flag release … but with it, more than 30min “Running command” … and it will not finish and does not give an error.

Anyone have any idea what that might be? thanks

“dependencies”: {
@angular/common”: “4.1.3”,
@angular/compiler”: “4.1.3”,
@angular/compiler-cli”: “4.1.3”,
@angular/core”: “4.1.3”,
@angular/forms”: “4.1.3”,
@angular/http”: “4.1.3”,
@angular/platform-browser”: “4.1.3”,
@angular/platform-browser-dynamic”: “4.1.3”,
@ionic-native/camera”: “^4.0.0”,
@ionic-native/core”: “3.12.1”,
@ionic-native/header-color”: “^4.0.0”,
@ionic-native/in-app-browser”: “^4.0.0”,
@ionic-native/network”: “^3.13.1”,
@ionic-native/splash-screen”: “3.12.1”,
@ionic-native/status-bar”: “3.12.1”,
@ionic-native/toast”: “^3.13.1”,
@ionic/storage”: “2.0.1”,
“angular2-text-mask”: “^8.0.2”,
“chart.js”: “^2.6.0”,
“cordova-android”: “^6.2.3”,
“cordova-plugin-camera”: “^2.4.1”,
“cordova-plugin-compat”: “^1.1.0”,
“cordova-plugin-console”: “1.0.5”,
“cordova-plugin-device”: “1.1.4”,
“cordova-plugin-headercolor”: “~1.0”,
“cordova-plugin-inappbrowser”: “^1.7.1”,
“cordova-plugin-network-information”: “~1.3.3”,
“cordova-plugin-splashscreen”: “~4.0.1”,
“cordova-plugin-statusbar”: “2.2.2”,
“cordova-plugin-whitelist”: “1.3.1”,
“cordova-plugin-x-toast”: “~2.6.0”,
“ionic”: “^3.5.0”,
“ionic-angular”: “3.5.3”,
“ionic-plugin-keyboard”: “~2.2.1”,
“ionicons”: “3.0.0”,
“moment”: “^2.18.1”,
“rxjs”: “5.4.0”,
“sw-toolbox”: “3.6.0”,
“zone.js”: “0.8.12”
},
“devDependencies”: {
@ionic/app-scripts”: “2.0.2”,
@ionic/cli-plugin-cordova”: “1.4.1”,
@ionic/cli-plugin-ionic-angular”: “1.3.2”,
@ionic/cli-utils”: “1.5.0”,
“typescript”: “2.3.4”
},

What is your ionic info output?
Add --verbose to the command and try again.
Also run the command without ionic but --debug added at the end.

It works just with cordova build android --release

A also set SLAVE_AAPT_TIMEOUT environment variable to 30 in windows.

Thanks

2 Likes

hii i have the same problem , can you please tell me haw a can change SLAVE_AAPT_TIMEOUT to 30 s because i cant find the file
thank you ^^

ThankYou its working for me