ionic-team / ionic-conference-app

A conference app built with Ionic to demonstrate Ionic
Apache License 2.0
3.59k stars 1.82k forks source link

When I do production build at Ionic 4 beta with the recentest source, the build is failed #719

Open JeongJun-Lee opened 5 years ago

JeongJun-Lee commented 5 years ago

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:

insert any relevant code here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Ionic:

   ionic (Ionic CLI)             : 4.6.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.19
   @angular-devkit/build-angular : 0.11.0
   @angular-devkit/schematics    : 7.1.2
   @angular/cli                  : 7.1.0
   @ionic/angular-toolkit        : 1.2.0

Cordova:

   cordova (Cordova CLI) : 7.1.0
   Cordova Platforms     : android 6.3.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 1.1.1, (and 6 other plugins)

System:

   Android SDK Tools : 25.2.4 (/Users/comseong/Library/Android/sdk)
   ios-deploy        : 2.0.0
   ios-sim           : 7.0.0
   NodeJS            : v8.9.1 (/usr/local/bin/node)
   npm               : 5.5.1
   OS                : macOS Sierra
   Xcode             : Xcode 8.2.1 Build version 8C1002
raphjutras commented 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.