- Home /
Game crashes on Android the second it loads (no splash screen)
I did some upgrades to plugins like Android SDK, JAVA SDK, Facebook, FireBase and it crashes the moment i launch it on android (no Splash screen), but i do not know if that was the cause (since it did solve other errors prehand) and i can compile other games. I am using unity 2018.2.16f.
I use Gradle since without i have High Dex thing.
Everything compiles with NO errors to APK, that is the strange thing. Did any encounter such issue?
Protect Graphic Memory is OFF.
This is the log, i can't seem to detect any problem, or maybe i am missing something that you could help me.
The log:
> ActivityManager: crash :11-25 16:49:22.709 3793 4570 I ActivityManager: START u0 {act=android.intent.action.MAIN typ=null flg=0x10000000 cmp=ComponentInfo{com.xxxxx.thegame/com.unity3d.player.UnityPlayerActivity}} from uid 10033 11-25 16:49:22.720 3793 3793 D PackageManager: Shame on you for calling the hidden API queryBroadcastReceivers(). Shame! 11-25 16:49:22.728 3793 3955 D ActivityManager: isScaleDownAnimationEnabled() : true 11-25 16:49:22.731 3793 3955 D ActivityManager: package com.xxxxx.thegame, user - 0 is SDcard whitelisted 11-25 16:49:22.750 3793 3955 I ActivityManager: Start proc 16567:com.xxxxx.thegame/u0a443 for activity com.xxxxx.thegame/com.unity3d.player.UnityPlayerActivity 11-25 16:49:22.771 3793 3793 D PackageManager: Shame on you for calling the hidden API queryBroadcastReceivers(). Shame! 11-25 16:49:22.786 3793 4570 I ActivityManager: DSS on for com.xxxxx.thegame and scale is 1.0 11-25 16:49:22.883 3793 4248 D PackageManager: getComponentMetadataForIconTray : com.samsung.android.game.gamehome.main.MainActivity does not exist in mServices 11-25 16:49:22.883 3793 4248 D PackageManager: getComponentMetadataForIconTray : com.samsung.android.game.gamehome.main.MainActivity does not exist in mProviders 11-25 16:49:22.883 3793 4248 D PackageManager: getComponentMetadataForIconTray : com.samsung.android.game.gamehome.main.MainActivity does not exist in mReceivers 11-25 16:49:22.889 3793 4578 W
com.xxxxx.thegame,0 11-25 16:49:22.894 3793 4578 W ActivityManager: Force finishing activity com.xxxxx.thegame/com.unity3d.player.UnityPlayerActivity 11-25 16:49:22.897 3793 4578 W ActivityManager: Force finishing activity com.samsung.android.game.gamehome/.main.MainActivity 11-25 16:49:22.910 3793 3809 D ActivityManager: package com.android.printspooler, user - 0 is SDcard whitelisted 11-25 16:49:22.928 3793 3809 I ActivityManager: Start proc 16591:com.android.printspooler/u0a147 for service com.android.printspooler/.model.PrintSpoolerService 11-25 16:49:22.937 3793 3955 D ActivityManager: package com.samsung.cmh, user - 0 is SDcard whitelisted 11-25 16:49:22.952 3793 3955 I ActivityManager: Start proc 16604:com.samsung.cmh:CMH/5004 for service com.samsung.cmh/.service.CMHService 11-25 16:49:22.977 3793 5203 I ActivityManager: DSS on for com.android.printspooler and scale is 1.0 11-25 16:49:23.002 3793 5203 I ActivityManager: DSS on for com.samsung.cmh and scale is 1.0 11-25 16:49:23.036 3793 3811 I ActivityManager: Showing crash dialog for package com.xxxxx.thegame u0 11-25 16:49:23.052 3793 8854 D PackageManager: getSelectedMetaData : packageName(com.xxxxx.thegame) or Metadata strings {[Ljava.lang.String;@3ff40ff} 11-25 16:49:23.113 3793 5172 D PackageManager: getSelectedMetaData : packageName(com.facebook.katana) or Metadata strings {[Ljava.lang.String;@ba79871} 11-25 16:49:23.177 3793 5172 D PackageManager: getSelectedMetaData : packageName(com.facebook.orca) or Metadata strings {[Ljava.lang.String;@18ab1e2} 11-25 16:49:23.396 3793 3810 W ActivityManager: Activity pause timeout for ActivityRecord{944e559 u0 com.xxxxx.thegame/com.unity3d.player.UnityPlayerActivity t6 f} 11-25 16:49:23.397 3793 3810 D ActivityManager: isScaleDownAnimationEnabled() : false
Answer by drorriov · Dec 09, 2018 at 05:14 PM
It was AdMob issue, i didn't see it in log since it was filtered out with my logging command. Make sure you see ALL the log from Unity, not only UnityActivity.
I have no admob just google mobile ads, and got successful build until i add any of firebase services or even google analytics. Here are my full logs about the issue, i have worked around 30 hours but not solved the problem sadly There is some issue about the attachment that i can not attach please refer the logs in here https://stackoverflow.com/questions/53697236/firebase-unity-crash-prolem-at-start
You should see in log what caused the crash.
What log command are you executing?
i am using this command ./adb logcat -s Unity Activity$$anonymous$$anager Package$$anonymous$$anager dalvikvm DEBUG also i have add the link in previous message that all my logs
Answer by spideychan · Dec 08, 2018 at 04:59 PM
same error for me, look through the logs, reimport project, restart computer, force start google play resolver but not worked, any one could help please, i am also stuck for 2 days sadly