Ionic build android app(lazy load) white screen on android lolipop 5.1

ionic info

ionic info

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

    @ionic/cli-utils  : 1.19.1
    ionic (Ionic CLI) : 3.19.1

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.8
    Cordova Platforms  : android 6.2.3
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node              : v8.9.4
    npm               : 5.7.1
    OS                : Windows 10

Environment Variables:

    ANDROID_HOME : C:\Users\ismail\AppData\Local\Android\Sdk

Misc:

    backend : pro

as usual build statement:
ionic cordova build --release android

 ionic cordova build --release android
Running app-scripts build: --platform android --target cordova
[15:49:04]  build dev started ...
[15:49:04]  clean started ...
[15:49:04]  clean finished in 118 ms
[15:49:04]  copy started ...
[15:49:04]  deeplinks started ...
[15:49:05]  deeplinks finished in 140 ms
[15:49:05]  transpile started ...
[15:49:15]  transpile finished in 10.66 s
[15:49:15]  preprocess started ...
[15:49:15]  preprocess finished in 1 ms
[15:49:15]  webpack started ...
[15:49:16]  copy finished in 12.22 s
[15:49:28]  webpack finished in 13.08 s
[15:49:28]  sass started ...
Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
[15:49:34]  sass finished in 5.32 s
[15:49:34]  postprocess started ...
[15:49:34]  postprocess finished in 45 ms
[15:49:34]  lint started ...
[15:49:34]  build dev finished in 30.12 s
> cordova build android --release
[15:49:40]  lint finished in 6.06 s
ANDROID_HOME=C:\Users\ismail\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_161
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.

        at build_ct01a9zzo3flnx1f8yi609awn.run(D:\ionic\at\platforms\android\build.gradle:137)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.

Incremental java compilation is an incubating feature.

The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.

:preBuild

UP-TO-DATE

:preReleaseBuild

UP-TO-DATE
:checkReleaseManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
 UP-TO-DATE

:CordovaLib:compileReleaseNdk
 UP-TO-DATE
:CordovaLib:compileLint
 UP-TO-DATE

:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseShaders

UP-TO-DATE
:CordovaLib:compileReleaseShaders
 UP-TO-DATE
:CordovaLib:generateReleaseAssets
 UP-TO-DATE
:CordovaLib:mergeReleaseAssets
 UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles
 UP-TO-DATE
:CordovaLib:packageReleaseRenderscript
 UP-TO-DATE

:CordovaLib:compileReleaseRenderscript
 UP-TO-DATE
:CordovaLib:generateReleaseResValues
 UP-TO-DATE

:CordovaLib:generateReleaseResources UP-TO-DATE
:CordovaLib:packageReleaseResources
 UP-TO-DATE
:CordovaLib:processReleaseManifest
 UP-TO-DATE

:CordovaLib:generateReleaseBuildConfig
 UP-TO-DATE
:CordovaLib:processReleaseResources
 UP-TO-DATE
:CordovaLib:generateReleaseSources UP-TO-DATE
:CordovaLib:incrementalReleaseJavaCompilationSafeguard
 UP-TO-DATE

:CordovaLib:compileReleaseJavaWithJavac
 UP-TO-DATE
:CordovaLib:processReleaseJavaRes
 UP-TO-DATE

:CordovaLib:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
 UP-TO-DATE
:CordovaLib:mergeReleaseJniLibFolders

UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
 UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:CordovaLib:bundleRelease
 UP-TO-DATE
:prepareOrgApacheCordovaCordovaLib623ReleaseLibrary
 UP-TO-DATE
:prepareReleaseDependencies
:compileReleaseAidl UP-TO-DATE
:compileReleaseRenderscript
 UP-TO-DATE
:generateReleaseBuildConfig
 UP-TO-DATE

:generateReleaseResValues UP-TO-DATE
:generateReleaseResources UP-TO-DATE
:mergeReleaseResources
 UP-TO-DATE
:processReleaseManifest
 UP-TO-DATE

:processReleaseResources
 UP-TO-DATE

:generateReleaseSources UP-TO-DATE
:incrementalReleaseJavaCompilationSafeguard
 UP-TO-DATE
:compileReleaseJavaWithJavac
 UP-TO-DATE

:compileReleaseNdk
 UP-TO-DATE
:compileReleaseSources UP-TO-DATE
:lintVitalRelease

:mergeReleaseShaders
 UP-TO-DATE

:compileReleaseShaders

UP-TO-DATE
:generateReleaseAssets UP-TO-DATE
:mergeReleaseAssets

:transformClassesWithDexForRelease
 UP-TO-DATE
:mergeReleaseJniLibFolders
 UP-TO-DATE

:transformNative_libsWithMergeJniLibsForRelease
 UP-TO-DATE

:processReleaseJavaRes
 UP-TO-DATE
:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:packageRelease

:assembleRelease
:cdvBuildRelease

BUILD SUCCESSFUL

Total time: 1 mins 30.308 secs
Built the following apk(s):
        D:/ionic/at/platforms/android/build/outputs/apk/android-release-unsigned.apk

app is comming in web browesr but android lolipop 5.1 white screen show always. I am not understanding. please help any one.

Just a guess, I occured the same problem turned out my app needed to load so long because it was connecting to a server and what not. After some time it loaded up. (Maybe its the same for you ?)

I “fixed” this issue by letting the splashscreen appear as long as the app really needed to load!

i have tested for five minutes on android lolipop 5.1 but white screen show foreveer.