Android Studio 2.0 - pause/white screen on App first run
Check image for reference
Turn off Instant Run in Settings.
File>Settings>Build,Deployment>Instant Run
Deselect all options shown there.
Now white screen problem is solved.
In android studio 2.0,My APK size was 16 MB while using Instant Run.
Without using Instant Run it became 27 MB.
While in 1.5 .. the size was 27 MB.
Instant Run is the culprit.
- White screen Issue/ Instant Run is only for Debug builds .. Issue will not affect release builds.
Android Studio - blank white screen when running Ionic App on an emulator
For whoever meets the same issue.
It turns out that my problem was the path where ionic build
builds the project (dist
) and the webDir
path on my capacitor.config.json
(public
) weren't matched.
After syncing them the app was running just fine
Why does my App start incredibly slow (10s+) at first run, showing only white screen on android 5.0?
This is because Instant Run takes awhile to load. The blank/white screen will go away in production builds.
I'm not sure why Instant Run takes so long to load. If you look in the app's internal cache directory you will see quite a few dex files. There was an article about how Instant Run works posted a couple days ago here: https://medium.com/google-developers/instant-run-how-does-it-work-294a1633367f#.ntl30mbe2
You can disable Instant Run or just be aware that your production builds will not have this blank white screen.
Similar question: Android Studio 2.0 - pause/white screen on App first run
White screen at start when running debug variant
It is because you're using Android studio instant run.
You can disable it like this:
Properties -> Instant Run -> uncheck 'Enable Instant Run...'
Related Topics
Why Does Gradle Build My Module in Release Mode When the App Is in Debug
Android Calling Asynctask Right After an Another Finished
How to Handle the Firebase Notification When App Is in Foreground
Android Device as a Receiver for A2Dp Profile
Failed to Connect to Camera Service
Yet Another Getview Called Multiple Times
How to Handle Asynctask's in Actionbaractivity Fragments When Viewpager Is Used
Java.Lang.Noclassdeffounderror: Com.Google.Android.Gms.R$Styleable in Android
How to Verify If User Has Network Access and Show a Pop-Up Alert When There Isn'T
How to Analyze Memory Using Android Studio
How to Hide a Folder in Sdcard in Android
How to Communicate Between Activities
"You Need to Use a Theme.Appcompat Theme (Or Descendant) with the Design Library" Error
Error Non-Default Constructors in Fragments
Android - Onbackpressed() Not Working
How to Animate Marker in Android Map API V2
How to Do Circular Scrolling on Viewpager
Immersive Mode Navigation Becomes Sticky After Volume Press or Minimise-Restore