facebook-sdk-for-unity
facebook-sdk-for-unity copied to clipboard
Google Play Console Crash Reports : java.lang.Error, com.android.internal.policy.PhoneWindow.generateLayout
Checklist
- [x] I've updated to the latest released version of the SDK
- [x] I've searched for existing GitHub issues
- [x] I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- [x] I've read the Code of Conduct
- [x] This issue is not security related and can safely be disclosed publicly on GitHub
Environment
Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
- Unity Editor Version:
2018.4.16f - Unity SDK Version:
7.19.0 - Installation Platform & Verison:
[Android]versionX.X.X
Goals
Resolving Crash Reports
Expected Results
Preventing Crashing Reports
Actual Results
Facebook SDK runs smoothly. But on Android 6.0 and below, some users have a crash problem. I tried the Facebook Unity SDK v7.18.1 and v7.19.0 versions. The result is the same.
Crash Report Example in Google Play Console :
java.lang.Error com.android.internal.policy.PhoneWindow.generateLayout
at com.android.internal.policy.PhoneWindow.generateLayout (PhoneWindow.java:4623) at com.android.internal.policy.PhoneWindow.installDecor (PhoneWindow.java:4692) at com.android.internal.policy.PhoneWindow.getDecorView (PhoneWindow.java:2271) at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:4349) at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3426) at android.app.ActivityThread.access$1100 (ActivityThread.java:229) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1821) at android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:148) at android.app.ActivityThread.main (ActivityThread.java:7325) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)
I have the same issue
Same on 8.0.0
Same on Android version 6.0.
Please help and fix as it is a very big number of the crash on the console


The problem still continues.
Unity Editor Version: 2018.4.30f
Facebook Unity SDK Version: 9.0.0
Yes I also still have the same issue