My game works fine when packaged for Windows, but immediately quits upon reaching the splash screen on Android.
Running C:\NVPack\android-sdk-windows\tools\lib\monitor-x86\monitor.exe with the Android device (an LG ThinQ V30 smartphone) connected, upon which I have installed my game, I get the attached log.
In the log, the only errors seem to have to do with activityStartTrigger and activityResumeTrigger, on SplashActivity and GameActivity. I have tried building with ANT and with Gradle, but the same thing happens. I have tried changing API and SDK versions between 14, 21, and 24, but nothing changes.
The errors specifically say for instance,
activityStartTrigger: not whiteListedcom.MightyEnigma.ScootyShooty/com.epicgames.ue4.SplashActivity/1
How do I whitelist an activity? I never had to do that on this same device before, in Unreal Engine version 4.20.3. Is this a new requirement by the Engine? If so, where is the documentation on how to do things properly?
I looked at the manifest XML and it shows both SplashActivity and GameActivity. What else do I need to do?
I attached the manifest here (added .txt extension so it would be allowed to attach here) from my project folder\Intermediate\Android\
link text
I have also attached the log file from monitor.exe to show you what I mean about the errors.
link text
I removed all splash screen images and disabled splash screen at startup, and the SplashActivity error no longer shows up, so that’s good.
Now I just have to figure out why GameActivity error happens. Maybe Android doesn’t like Epic’s “Web Browser plugin”? I saw on another AnswerHub post that disabling that plugin in 4.19 fixed a problem with Android not launching the game.
Am I the only one who has ever had this problem? Am I the first?
Removed Web Browser plugin. Still getting whitelist error. See log.txt attachedlink text
Still won’t launch, even if I delete Intermediate and Saved folders from my project first.
Android build options do NOT use Gradle.
log cat attached, this time I am not filtering by app. That way it can include both my com.MightyEnigma.ScootyShooty and com.epicgames.ue4 and anything else I might need to notice, but also includes other stuff not related to it. Everything going on in the device.
I still can’t find any useful errors to tell me how to fix it. It just keeps saying GameActivity is not whitelisted. I can’t seem to find anything on the internet about how to whitelist an activity.
link text
Same problem event after turning off plugins for Sound Utilities, Synth and DSP, etc. I went through and turned off all the plugins I had ever turned on.
Here’s the logcat for that:
link text
It is very lonely in here
And here’s the logcat from when I changed min sdk to 26, and kept max sdk at 26:
link text
Woah I’m up to 50 views, no comments or answers. Somebody mentioned proguard. I don’t really know what that is, and never had to do anything with it before now to get this same project to build to Android before, in Unreal 4.20.3
I converted my project to 4.23.0 and now it launches on Android.
I never did find out what was wrong or how to fix it, but this workaround is satisfactory.