Why don't show on android phone?


#1

Why don’t show on android phone?

How to fix it?

My Step

1.Ionic start --v2 tabs myApp
2.ionic serve
3.ionic platform add android@6.1.0
4.ionic build android

*-----------------------------

Result of ionic serve (it’s work). It’s show result.

*-----------------------------

Result of ionic build android. it’s not show anything.

How to fix it?

*----------------------------  

C:\Users\Au\Desktop\App\imwrApp>ionic platform add android@6.1.0
Adding android project…

Creating Cordova project for the Android platform:

    Path: platforms\android
    Package: com.ionicframework.imwrapp410602
    Name: imwrApp
    Activity: MainActivity
    Android target: android-25

Subproject Path: CordovaLib
Android project created with cordova-android@6.1.0

Installing “cordova-plugin-console” for android

ANDROID_HOME=C:\Users\Au\AppData\Local\Android\sdk

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121

Subproject Path: CordovaLib

Incremental java compilation is an incubating feature.

:clean

:CordovaLib:clean

BUILD SUCCESSFUL

Total time: 5.104 secs

Installing “cordova-plugin-device” for android

ANDROID_HOME=C:\Users\Au\AppData\Local\Android\sdk

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121

Subproject Path: CordovaLib

Incremental java compilation is an incubating feature.

:clean

:CordovaLib:clean

BUILD SUCCESSFUL

Total time: 2.519 secs

Installing “cordova-plugin-splashscreen” for android

ANDROID_HOME=C:\Users\Au\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121
Subproject Path: CordovaLib

Incremental java compilation is an incubating feature.

:clean
:CordovaLib:clean

BUILD SUCCESSFUL

Total time: 2.577 secs
Installing “cordova-plugin-statusbar” for android
ANDROID_HOME=C:\Users\Au\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121
Subproject Path: CordovaLib

Incremental java compilation is an incubating feature.

:clean
:CordovaLib:clean

BUILD SUCCESSFUL

Total time: 2.585 secs

Installing “cordova-plugin-whitelist” for android

ANDROID_HOME=C:\Users\Au\AppData\Local\Android\sdk

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121

Subproject Path: CordovaLib

Incremental java compilation is an incubating feature.

:clean

:CordovaLib:clean

BUILD SUCCESSFUL

Total time: 2.786 secs

           This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.

Installing “ionic-plugin-keyboard” for android

ANDROID_HOME=C:\Users\Au\AppData\Local\Android\sdk

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121

Subproject Path: CordovaLib

Incremental java compilation is an incubating feature.

:clean

:CordovaLib:clean

BUILD SUCCESSFUL

Total time: 5.081 secs

C:\Users\Au\Desktop\App\imwrApp>ionic build android

ionic-hello-world@ ionic:build C:\Users\Au\Desktop\App\imwrApp
ionic-app-scripts build

[08:19:51] ionic-app-scripts 1.0.0
[08:19:52] build dev started …
[08:19:52] clean started …
[08:19:52] clean finished in 13 ms
[08:19:52] copy started …
[08:19:52] transpile started …
[08:19:58] transpile finished in 6.83 s
[08:19:58] webpack started …
[08:19:59] copy finished in 7.21 s
[08:20:11] webpack finished in 12.64 s
[08:20:11] sass started …
[08:20:12] sass finished in 1.44 s
[08:20:12] build dev finished in 20.96 s
ANDROID_HOME=C:\Users\Au\AppData\Local\Android\sdk

JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121

Subproject Path: CordovaLib

Incremental java compilation is an incubating feature.

:preBuild

UP-TO-DATE
:preDebugBuild
UP-TO-DATE
:checkDebugManifest

:CordovaLib:preBuild
UP-TO-DATE

:CordovaLib:preDebugBuild
UP-TO-DATE

:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl

:CordovaLib:compileDebugNdk
UP-TO-DATE

:CordovaLib:compileLint

:CordovaLib:copyDebugLint
UP-TO-DATE

:CordovaLib:mergeDebugShaders

:CordovaLib:compileDebugShaders

:CordovaLib:generateDebugAssets

:CordovaLib:mergeDebugAssets

:CordovaLib:mergeDebugProguardFiles

:CordovaLib:packageDebugRenderscript

UP-TO-DATE
:CordovaLib:compileDebugRenderscript

:CordovaLib:generateDebugResValues

:CordovaLib:generateDebugResources

:CordovaLib:packageDebugResources

:CordovaLib:processDebugManifest

:CordovaLib:generateDebugBuildConfig

:CordovaLib:processDebugResources

:CordovaLib:generateDebugSources

:CordovaLib:incrementalDebugJavaCompilationSafeguard

:CordovaLib:compileDebugJavaWithJavac

:CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:processDebugJavaRes
UP-TO-DATE

:CordovaLib:transformResourcesWithMergeJavaResForDebug

:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug

:CordovaLib:mergeDebugJniLibFolders

:CordovaLib:transformNative_libsWithMergeJniLibsForDebug

:CordovaLib:transformNative_libsWithSyncJniLibsForDebug

:CordovaLib:bundleDebug

:prepareAndroidCordovaLibUnspecifiedDebugLibrary

:prepareDebugDependencies

:compileDebugAidl

:compileDebugRenderscript

:generateDebugBuildConfig

:generateDebugResValues

:generateDebugResources

:mergeDebugResources

:processDebugManifest

:processDebugResources
:generateDebugSources
:incrementalDebugJavaCompilationSafeguard
:compileDebugJavaWithJavac
:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

Note: C:\Users\Au\Desktop\App\imwrApp\platforms\android\src\org\apache\cordova\splashscreen\SplashScreen.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:compileDebugNdk
UP-TO-DATE

:compileDebugSources

:mergeDebugShaders

:compileDebugShaders

:generateDebugAssets

:mergeDebugAssets

:transformClassesWithDexForDebug

:mergeDebugJniLibFolders

:transformNative_libsWithMergeJniLibsForDebug
:processDebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug

:validateSigningDebug

:packageDebug

:assembleDebug

:cdvBuildDebug

BUILD SUCCESSFUL

Total time: 34.309 secs

Built the following apk(s):
C:/Users/Au/Desktop/App/imwrApp/platforms/android/build/outputs/apk/android-debug.apk