Android apk black screen and crash

Hello. I’ve created simple project in editor, it works fine in editor and standalone package for windows, but i can’t deploy it on any Android device. When i tried to package it with any texture formates and install it on my devices, after launching app i see black screen and few seconds it shutdown without any messages. Launching from editor doesn’t work too, it wrote “Launch successfully” or something like that, but app is still crashing. Here is example from log after “success” launch from editor (can’t post whole log because of spamming LogWindowsTextInputMethodSystem errors):

LogWindowsTextInputMethodSystem:Error: Deactivating a context failed while setting focus to the disabled TSF document manager.
LogWindowsTextInputMethodSystem:Error: Deactivating a context failed while setting focus to the disabled TSF document manager.

LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/StarterContent/Textures/T_Shelf_N.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/StarterContent/Textures/T_Shelf_N.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/StarterContent/Textures/T_Shelf_M.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/StarterContent/Textures/T_Shelf_M.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/StarterContent/Textures/T_Rock_Smooth_Granite_Mat.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/StarterContent/Textures/T_Rock_Smooth_Granite_Mat.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/StarterContent/Textures/T_Rock_Smooth_Granite_D.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/StarterContent/Textures/T_Rock_Smooth_Granite_D.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/StarterContent/Textures/T_Metal_Aluminum_Mat.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/StarterContent/Textures/T_Metal_Aluminum_Mat.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/StarterContent/Textures/T_Metal_Aluminum_D.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/StarterContent/Textures/T_Metal_Aluminum_D.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/StarterContent/Textures/T_MacroVariation.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/StarterContent/Textures/T_MacroVariation.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/StarterContent/Textures/T_Frame_N.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/StarterContent/Textures/T_Frame_N.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/StarterContent/Textures/T_Frame_M.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/StarterContent/Textures/T_Frame_M.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/StarterContent/Textures/T_Door_N.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/StarterContent/Textures/T_Door_N.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/StarterContent/Textures/T_Door_M.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/StarterContent/Textures/T_Door_M.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/Textures/Tile_02_G.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/Textures/Tile_02_G.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/Textures/Tile_02_E.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/Textures/Tile_02_E.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/Textures/Server_01_SR.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/Textures/Server_01_SR.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/Textures/Server_01_N.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/Textures/Server_01_N.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/Textures/Server_01_M.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/Textures/Server_01_M.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/Textures/Server_01_E.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/Textures/Server_01_E.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/Textures/Server_01_D.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/Textures/Server_01_D.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/Textures/Office_Room_01_occlusion.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/Textures/Office_Room_01_occlusion.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/Textures/Monitor_01.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/Textures/Monitor_01.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/Textures/Metal_Scratches_M.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/Textures/Metal_Scratches_M.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/Textures/Metal_Brushed_M.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/Textures/Metal_Brushed_M.uasset
LogPlayLevel:Display: cmd: push: D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/Textures/Kitbash_01_O.uasset -> /mnt/sdcard/Diplom2015/Diplom2015/Content/Textures/Kitbash_01_O.uasset
LogPlayLevel:Display: cmd: failed to copy 'D:\Diplom2015\Saved\StagedBuilds\Android/Diplom2015/Content/Textures/Kitbash_01_O.uasset' to '/mnt/sdcard/Diplom2015/Diplom2015/Content/Textures/Kitbash_01_O.uasset': No space left on device
LogPlayLevel:Display: InternalUtils.SafeFileExists: SafeFileExists C:\Windows\system32\cmd.exe=True
LogPlayLevel:Display: CommandUtils.Run: Run: C:\Windows\system32\cmd.exe /c C:\NVPACK\android-sdk-windows/platform-tools/adb.exe -s 015d2ebe860c0219 shell rm /mnt/sdcard/obb/com.epicgames.Diplom2015/main.00001.com.epicgames.Diplom2015.obb
LogPlayLevel:Display: CommandUtils.Run: Run: Took 0,2340134s to run cmd.exe, ExitCode=0
LogPlayLevel:Display: Project.Deploy: ********** DEPLOY COMMAND COMPLETED **********
LogPlayLevel:Display: CommandUtils.PrintRunTime: Run: Total 0s to run HarvestEnvVars.bat
LogPlayLevel:Display: CommandUtils.PrintRunTime: Run: Total 201s to run UnrealBuildTool.exe
LogPlayLevel:Display: CommandUtils.PrintRunTime: Run: Total 46s to run UE4Editor-Cmd.exe
LogPlayLevel:Display: CommandUtils.PrintRunTime: Run: Total 45s to run cmd.exe
LogPlayLevel:Display: InternalUtils.SafeFileExists: SafeFileExists D:\Diplom2015\Diplom2015.uproject=True
LogPlayLevel:Display: Project.Run: ********** RUN COMMAND STARTED **********
LogPlayLevel:Display: InternalUtils.SafeDeleteDirectory: SafeDeleteDirectory C:\Users\user\AppData\Local\Temp\D+UE4+4.5\Logs
LogPlayLevel:Display: InternalUtils.SafeCreateDirectory: SafeCreateDirectory C:\Users\user\AppData\Local\Temp\D+UE4+4.5\Logs
LogPlayLevel:Display: Project.RunInternal: Starting Client....
LogPlayLevel:Display: InternalUtils.SafeFileExists: SafeFileExists D:\Diplom2015\Diplom2015.uproject=True
LogPlayLevel:Display: InternalUtils.SafeCreateDirectory: SafeCreateDirectory D:\Diplom2015\Saved\StagedBuilds\Android
LogPlayLevel:Display: Project.LogDeploymentContext: Deployment Context **************
LogPlayLevel:Display: Project.LogDeploymentContext: ArchiveDirectory = Android
LogPlayLevel:Display: Project.LogDeploymentContext: RawProjectPath = D:\Diplom2015\Diplom2015.uproject
LogPlayLevel:Display: Project.LogDeploymentContext: IsCodeBasedUprojectFile = True
LogPlayLevel:Display: Project.LogDeploymentContext: DedicatedServer = False
LogPlayLevel:Display: Project.LogDeploymentContext: Stage = True
LogPlayLevel:Display: Project.LogDeploymentContext: StageTargetPlatform = Android
LogPlayLevel:Display: Project.LogDeploymentContext: LocalRoot = D:\UE4\4.5
LogPlayLevel:Display: Project.LogDeploymentContext: ProjectRoot = D:\Diplom2015
LogPlayLevel:Display: Project.LogDeploymentContext: PlatformDir = Android
LogPlayLevel:Display: Project.LogDeploymentContext: StageProjectRoot = D:\Diplom2015\Saved\StagedBuilds\Android\Diplom2015
LogPlayLevel:Display: Project.LogDeploymentContext: ShortProjectName = Diplom2015
LogPlayLevel:Display: Project.LogDeploymentContext: StageDirectory = D:\Diplom2015\Saved\StagedBuilds\Android
LogPlayLevel:Display: Project.LogDeploymentContext: SourceRelativeProjectRoot = Diplom2015
LogPlayLevel:Display: Project.LogDeploymentContext: RelativeProjectRootForStage = Diplom2015
LogPlayLevel:Display: Project.LogDeploymentContext: RelativeProjectRootForUnrealPak = Diplom2015
LogPlayLevel:Display: Project.LogDeploymentContext: ProjectArgForCommandLines = ../../../Diplom2015/Diplom2015.uproject
LogPlayLevel:Display: Project.LogDeploymentContext: RuntimeRootDir = D:\Diplom2015\Saved\StagedBuilds\Android
LogPlayLevel:Display: Project.LogDeploymentContext: RuntimeProjectRootDir = D:\Diplom2015\Saved\StagedBuilds\Android\Diplom2015
LogPlayLevel:Display: Project.LogDeploymentContext: UProjectCommandLineArgInternalRoot = ../../../
LogPlayLevel:Display: Project.LogDeploymentContext: PakFileInternalRoot = ../../../
LogPlayLevel:Display: Project.LogDeploymentContext: UnrealFileServerInternalRoot = ../../../
LogPlayLevel:Display: Project.LogDeploymentContext: End Deployment Context **************
LogPlayLevel:Display: Apk='D:\Diplom2015\Binaries/Android\Diplom2015.apk', ClientApp='D:\Diplom2015\Saved\StagedBuilds\Android\Diplom2015\Binaries\Android\Diplom2015', ExeName='D:\Diplom2015\Binaries\Android\Diplom2015'
LogPlayLevel:Display: InternalUtils.SafeFileExists: SafeFileExists C:\Windows\system32\cmd.exe=True
LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//FLauncherTask///Thread_698_0///////STATCAT_Advanced//// old //STATGROUP_Threads//FLauncherTask///Thread_26fc_0///////STATCAT_Advanced////
LogPlayLevel:Display: CommandUtils.Run: Run: C:\Windows\system32\cmd.exe /c C:\NVPACK\android-sdk-windows/platform-tools/adb.exe -s 015d2ebe860c0219 shell input keyevent 82
LogPlayLevel:Display: CommandUtils.Run: Run: Took 1,9801133s to run cmd.exe, ExitCode=0
LogPlayLevel:Display: InternalUtils.SafeFileExists: SafeFileExists C:\Windows\system32\cmd.exe=True
LogPlayLevel:Display: CommandUtils.Run: Run: C:\Windows\system32\cmd.exe /c C:\NVPACK\android-sdk-windows/platform-tools/adb.exe -s 015d2ebe860c0219 shell am start -n com.epicgames.Diplom2015/com.epicgames.ue4.GameActivity
LogPlayLevel:Display: cmd: Starting: Intent { cmp=com.epicgames.Diplom2015/com.epicgames.ue4.GameActivity }
LogPlayLevel:Display: cmd:
LogPlayLevel:Display: CommandUtils.Run: Run: Took 0,629036s to run cmd.exe, ExitCode=0
LogPlayLevel:Display: InternalUtils.SafeFindFiles: SafeFindFiles C:\Users\user\AppData\Local\Temp\D+UE4+4.5\Logs * False
LogPlayLevel:Display: InternalUtils.FindFiles: FindFiles C:\Users\user\AppData\Local\Temp\D+UE4+4.5\Logs * False
LogPlayLevel:Display: BuildCookRun.DoBuildCookRun: ********** RUN COMMAND COMPLETED **********
LogPlayLevel:Display: Automation.Execute: BUILD SUCCESSFUL
LogPlayLevel:Display: Automation.Execute: Script execution successful, exiting.
LogPlayLevel:Display: ProcessManager.KillAll: Trying to kill 0 spawned processes.
LogPlayLevel:Display: Program.Main: AutomationTool exiting with ExitCode=0
LogPlayLevel:Display: Domain_ProcessExit
LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//FLauncherTask///Thread_22ec_0///////STATCAT_Advanced//// old //STATGROUP_Threads//FLauncherTask///Thread_26fc_0///////STATCAT_Advanced////
LogPlayLevel:Display: ProcessManager.KillAll: Trying to kill 0 spawned processes.

LogWindowsTextInputMethodSystem:Error: Deactivating a context failed while setting focus to the disabled TSF document manager.
LogWindowsTextInputMethodSystem:Error: Deactivating a context failed while setting focus to the disabled TSF document manager. 

I tried to package examples from Epic, and it works strange too. Lightroom demo works on Galaxy S3, but still crashed on Optimus 4X HD and other devices.

Have you found a solution for your problem yet ?

No, unfortunately

Hi InquisitorAles,

Thank you for taking the time to report this issue and we appreciate your patience while awaiting a response. In order to assist you in an effective manner, we would like to see if you are still having a problem deploying to Android devices using engine version 4.9.2…

If so, please provide some simple steps, screenshots, or any other relevant pieces of information to help us reproduce the issue on our end and we will investigate the problem.

Thank you for your feedback and cooperation,

.

I’m having the same issue with my APK. It has built just fine in distribution and develoopment, runs fine in PIE and mobile preview but I’m having the same issue as InquisitorAles, where the app opens, i see the splash screen, then it goes black and crashes fatally to the devices desktop.

I’m experiencing this problem too, it’s really frustrating as I’ve tried so many different methods that have been posted on AnswerHub with very little success though :frowning:

I used the Android Device Monitor and this was the log I got from it if anyone can see what is happening during runtime?

https://pastebin.com/C4LrPd92

Bumping for a response as I’m at a complete blocker with this now :confused: