Ionic cordova build android --prod --release fails


#1

Hi,
I’m working with Ionic 3. When I try cordova build android --prod --release, build comes. but the signed APK is showing white screen after splash. When I try ionic cordova build android --prod --release, it is showing the following error. Please help me out on this. Very urgent. Thanks in advance


#2

What is your ionic info output?
What does your main.ts look like?


#3

Ionic info

Ionic info gives

cli packages: (C:\Users\akrra\AppData\Roaming\npm\node_modules)

@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
global packages:

cordova (Cordova CLI) : 7.1.0
local packages:

@ionic/app-scripts : 3.1.2
Cordova Platforms : android 6.3.0 windows 5.0.0
Ionic Framework : ionic-angular 3.9.2
System:

Node : v9.2.0
npm : 5.5.1
OS : Windows 10
Environment Variables:

ANDROID_HOME : not set
Misc:

backend : legacy

main.ts

import { platformBrowserDynamic } from ‘@angular/platform-browser-dynamic’;

import { AppModule } from ‘./app.module’;

platformBrowserDynamic().bootstrapModule(AppModule);


#4

Strange, what happen with ionic build --prod?