Hi,
I can serve with browser and all is ok, but when I try to test generating an apk with ionic build android
or with an emulator ionic run android
, seems that all is ok but when I open the app, only shows me a white screen and never loads the login menu.
Here is the log:
C:\Ionic2\estshan\src>ionic run android
Running 'run:before' npm script before run
> estshan@1.0.0 build C:\Ionic2\estshan
> ionic-app-scripts build
[21:09:39] ionic-app-scripts 0.0.44
[21:09:39] build prod started ...
[21:09:39] clean started ...
[21:09:39] clean finished in 8 ms
[21:09:39] copy started ...
[21:09:39] ngc started ...
[21:09:40] copy finished in 1.25 s
[21:10:13] ngc finished in 33.71 s
[21:10:13] webpack started ...
[21:10:17] webpack finished in 4.29 s
[21:10:17] uglifyjs started ...
[21:10:17] sass started ...
[21:10:19] sass finished in 2.04 s
[21:10:19] cleancss started ...
[21:10:21] cleancss finished in 1.57 s
[21:10:24] uglifyjs finished in 6.98 s
[21:10:24] build prod finished in 45.01 s
Running command: "C:\Program Files\nodejs\node.exe" C:\Ionic2\estshan\hooks\after_prepare\010_add_platform_class.js C:\Ionic2\estshan
add to body class: platform-android
ANDROID_HOME=C:\Users\XXXXX\AppData\Local\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_112
Subproject Path: CordovaLib
Starting a new Gradle Daemon for this build (subsequent builds will be faster).
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
UP-TO-DATE
:CordovaLib:compileDebugNdk
UP-TO-DATE
:CordovaLib:compileLint
UP-TO-DATE
:CordovaLib:copyDebugLint
UP-TO-DATE
:CordovaLib:mergeDebugShaders
UP-TO-DATE
:CordovaLib:compileDebugShaders
UP-TO-DATE
:CordovaLib:generateDebugAssets
UP-TO-DATE
:CordovaLib:mergeDebugAssets
UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
UP-TO-DATE
:CordovaLib:packageDebugRenderscript
UP-TO-DATE
:CordovaLib:compileDebugRenderscript
UP-TO-DATE
:CordovaLib:generateDebugResValues
UP-TO-DATE
:CordovaLib:generateDebugResources
UP-TO-DATE
:CordovaLib:packageDebugResources
UP-TO-DATE
:CordovaLib:processDebugManifest
UP-TO-DATE
:CordovaLib:generateDebugBuildConfig
UP-TO-DATE
:CordovaLib:processDebugResources
UP-TO-DATE
:CordovaLib:generateDebugSources
UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard
UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac
UP-TO-DATE
:CordovaLib:processDebugJavaRes
UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders
UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
UP-TO-DATE
:CordovaLib:bundleDebug
UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedDebugLibrary
UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl
UP-TO-DATE
:compileDebugRenderscript
UP-TO-DATE
:generateDebugBuildConfig
UP-TO-DATE
:generateDebugResValues
UP-TO-DATE
:generateDebugResources
UP-TO-DATE
:mergeDebugResources
UP-TO-DATE
:processDebugManifest
UP-TO-DATE
:processDebugResources
UP-TO-DATE
:generateDebugSources UP-TO-DATE
:incrementalDebugJavaCompilationSafeguard
UP-TO-DATE
:compileDebugJavaWithJavac
UP-TO-DATE
:compileDebugNdk
UP-TO-DATE
:compileDebugSources
UP-TO-DATE
:mergeDebugShaders
UP-TO-DATE
:compileDebugShaders
UP-TO-DATE
:generateDebugAssets
UP-TO-DATE
:mergeDebugAssets
UP-TO-DATE
:transformClassesWithDexForDebug
UP-TO-DATE
:mergeDebugJniLibFolders
UP-TO-DATE
:transformNative_libsWithMergeJniLibsForDebug
UP-TO-DATE
:processDebugJavaRes
UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug
UP-TO-DATE
:validateSigningDebug
:packageDebug
UP-TO-DATE
:assembleDebug UP-TO-DATE
:cdvBuildDebug
UP-TO-DATE
BUILD SUCCESSFUL
Total time: 14.991 secs
Built the following apk(s):
C:/Ionic2/estshan/platforms/android/build/outputs/apk/android-debug.apk
ANDROID_HOME=C:\Users\XXXXX\AppData\Local\Android\android-sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_112
No target specified and no devices found, deploying to emulator
No emulator specified, defaulting to Emulator-Api23-Default
Waiting for emulator to start...
emulator: R
equested console port 5584: Inferring adb port 5585.
SetProce
ssDpiAwareness failed: "COM error 0xffffffff80070005 (Unknown error 0x0ffffffff80070005)"
Hax is en
abled
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
emulator: Li
stening for console connections on port: 5584
emulator: Serial number of this emulator (for ADB): emulator-5584
emulator:
emulator window was out of view and was recentered
Your emul
ator is out of date, please update by launching Android Studio:
- Start Android Studio
- Select menu "Tools > Android > SDK Manager"
- Click "SDK Tools" tab
- Check "Android SDK Tools" checkbox
- Click "OK"
Waiting for emulator to boot (this may take a while)...
BOOT COMPLETE
Skipping build...
Built the following apk(s):
C:/Ionic2/estshan/platforms/android/build/outputs/apk/android-debug.apk
Using apk: C:/Ionic2/estshan/platforms/android/build/outputs/apk/android-debug.apk
Package name: com.ionicframework.esteticashandra778181
INSTALL SUCCESS
LAUNCH SUCCESS
Someone knows what can be happening? Is there any way to “debug” the application when is launched?
Thanks!