Open JeongJun-Lee opened 5 years ago
I also get an error when trying to run it in prod, here is the output data:
$ ionic cordova run android --prod
√ Creating .\www directory for you - done!
> ng run app:ionic-cordova-build:production --platform=android
Date: 2019-01-07T00:50:57.635Z
Hash: d55f0bd7b14f5267f484
Time: 4334ms
chunk {0} runtime.ec2944dd8b20ec099bf3.js (runtime) 1.41 kB [entry] [rendered]
chunk {1} main.9868d9b237c3a48c54da.js (main) 128 bytes [initial] [rendered]
chunk {2} polyfills.85f47f0bf59079cbc23a.js (polyfills) 130 bytes [initial] [rendered]
chunk {3} styles.56a3ad37f5cebe088e83.css (styles) 18.9 kB [initial] [rendered]
ERROR in Internal Error: The structure of the program changed during codegen.
chunk {cordova} cordova.b8b05ba265b9ff1d69c8.js (cordova) 24 kB [rendered]
[ERROR] An error occurred while running subprocess ng.
ng run app:ionic-cordova-build:production --platform=android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
When I do production build at Ionic 4 beta with the recentest source, below build error comes out.
platforms/android/build/intermediates/manifests/full/armv7/debug/AndroidManifest.xml:24: AAPT: No resource identifier found for attribute 'appComponentFactory' in package 'android'
Expected behavior:
Should be no build error.
Steps to reproduce:
ionic cordova run android --prod
Related code:
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):