Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve app launch - app is stuck on white screen

Tags:

android

I check the error log, and it shows:

08-31 13:36:18.778 13207-13207/? I/art: Late-enabling -Xcheck:jni
08-31 13:36:18.877 13207-13207/com.knowyourmeds D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
08-31 13:36:18.888 13207-13207/com.knowyourmeds D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
08-31 13:36:18.902 13207-13207/com.knowyourmeds V/FA: Cancelling job. JobID: 380685678
08-31 13:36:18.904 13207-13207/com.knowyourmeds V/FA: Registered activity lifecycle callback
08-31 13:36:18.905 13207-13207/com.knowyourmeds I/FirebaseInitProvider: FirebaseApp initialization successful
08-31 13:36:18.937 13207-13224/com.knowyourmeds V/FA: Collection enabled
08-31 13:36:18.938 13207-13224/com.knowyourmeds V/FA: App package, google app id: com.knowyourmeds, 1:694023459332:android:ffd849037d9dc14b
08-31 13:36:18.939 13207-13224/com.knowyourmeds I/FA: App measurement is starting up, version: 11910
    To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
    To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.knowyourmeds
08-31 13:36:18.939 13207-13224/com.knowyourmeds D/FA: Debug-level message logging enabled
08-31 13:36:18.956 13207-13224/com.knowyourmeds V/FA: Connecting to remote service
08-31 13:36:18.980 13207-13207/com.knowyourmeds I/CrashlyticsCore: Initializing Crashlytics 2.6.1.23
08-31 13:36:18.999 13207-13224/com.knowyourmeds V/FA: Connection attempt already in progress
08-31 13:36:19.008 13207-13207/com.knowyourmeds I/CrashlyticsInitProvider: CrashlyticsInitProvider initialization successful
08-31 13:36:19.018 13207-13207/com.knowyourmeds E/com.facebook.internal.AttributionIdentifiers: getAttributionIdentifiers should not be called from the main thread
08-31 13:36:19.025 13207-13243/com.knowyourmeds D/NetworkSecurityConfig: No Network Security Config specified, using platform default
08-31 13:36:48.923 13207-13223/com.knowyourmeds E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE

I also tried cleaning the project, restarting Android Studio and deleted the app from the device.

How should I resolve this issue?

like image 645
Harsh Shah Avatar asked Aug 31 '18 08:08

Harsh Shah


People also ask

Why is my app showing a white screen?

Problematic Android Apps – One of the common reasons for this issue is the apps you have installed on your phone. Not every app is fully compatible or bug-free. When you end up installing an app that has issues with it, the app causes your phone to go all white screen.

How do I fix white app?

you should disable Instant Run android studio Settings. File>Settings>Build,Execution, Deployment>Instant Run unCheck all options shown there. Note: White screen Issue due to Instant Run is only for Debug builds,this Issue will not appear on release builds.

How do I get rid of the white screen on my Android?

One of the reliable ways to fix the white screen of death on Android Phones or Tablets is to reboot your phone. First, press down the Power Button and Volume Down together, then tap on reboot. Once your phone reboot, it might result from a virus causing the Phone IOS not to load on time.


3 Answers

I just fixed the issue. The reason for this issue is you use 'com.facebook.android:facebook-android-sdk:4.+', Facebook auto update and have an error inside the SDK. Changing the version can fix the problem.

Use:

com.facebook.android:facebook-android-sdk:4.35.0
like image 82
Always Wei Avatar answered Oct 24 '22 12:10

Always Wei


It seems like some facebook SDK error. I got the same today and solved it by replacing dynamic version in the gradle file to the stable.

Replace this:

implementation "com.facebook.android:facebook-android-sdk:[4,5)"

to this:

implementation "com.facebook.android:facebook-android-sdk:4.35.0"

4.35.0 is the stable version of the SDK from facebook GitHub https://github.com/facebook/facebook-android-sdk

like image 19
dantes_21 Avatar answered Oct 24 '22 12:10

dantes_21


Try below:
1. In your app level gradle, you must have used implementation "com.facebook.android:facebook-android-sdk:[4,5)"
2. Try to remove this or upgrade to the latest sdk

like image 9
Sahil Bhavsar Avatar answered Oct 24 '22 10:10

Sahil Bhavsar