Hey everyone, I’m having an issue with deploying my .APK to android devices and emulators. I’ve looked at several ways on here to resolve the problem but nothing has worked so far.
So what happens is, my apk’s will build just fine in development and distribution (signing works okay now).
When i deploy the apk either through the batch file or manually installing to a device, I am greeted with the UE4 placeholder splash screen. It then goes black after a few seconds and then crashes to the devices desktop.
There are no error messages either (I might have to include debug files to get those?)
I’ve also got the same question on StackOverflow here
There are several posts like this which I have commented on but I don’t think the community staff that marked the previous posts as answered are active as I’ve had no response.
EDIT: I’ve updated to 4.17 and I’m still having the same issue.
Try to filter your log with UE4|Debug please. There is a green plus to the left of Logcat in Android Device Monitor, create the filter on your package name and those tags.
The map you are mentioning - are you failing on Assertion Failed blah blah in Map.h ?
I am kind of unable to see any issue in the logcat you posted (correct me if i am wrong, maybe i am missing).
Pls do next: open cmd/shell console/ whatever you have on your machine, type “adb devicves”. It will tell you your device id. If not - woalah your device is not connected. If yes, type next: “adb -s YourDeviceIdFromPreviousLine logcat > SomeFolderAddress/somefoldername.txt” . Type enter. It started to record your logcat. ONLY THEN try to start your application on-device. Wait for it to crush. Ctrl+break the cmd/shell window you were writing those adb commands to. Post here the link to the logcat.
I can’t promise miracles, but i’ll try my best at least to appoint you what generally goes wrong.
Thanks for this! So it’s struggling to serialize an enum. Now I’ve just gotta find out why it’s struggling. My current build of the engine is 4.16. Do you reckon if I update it to 4.17 the issue will resolve?
It appears to be coming from libUE4.so? Is that the file which is struggling to get its enums serialized?
Sorry for all the questions, the Android side of things is still a little overwhelming for me haha
EDIT: I’ve checked the enums in my project and apart from the standard ones in UE4, I haven’t created any new ones. The only ones used are toggle visibility ones that are in UMG and another which is used in one of the blueprint nodes within a plugin.
EDIT 2: Changing engine version didn’t work either (4.18 is throwing even more errors haha)
Sorry for the late updates, i just work too much hours.
Dude, what’s your NDK version? Seems ALOT like NDK version issue. You see, UE Build Automation is not smart enough to work with latest NDK. You need r14b at most. Downgrade if you are above. Also your SDK build-tools should be 25.0.1 at most. Downgrade.
Generally, if it’s not some of your own, proprietary code that is problematic, then it’s NDK and SDK build-tools version.
It’s okay buddy! I was away this weekend myself in all fairness!
I don’t think it’s any of my actual code or blueprints so it might well be an NDK or SDK issue.
My NDK Version is: r12b (Should I update this one to r14b?)
My SDK version is: 25.0.3 (this might be the problem? I’m using IR6u1 as suggested by the documentation, do i just need to use ir6? That’s the only way i can downgrade my sdk version, but it will downgrade to 24.x.x)
Downgrade build tools exactly to 25.0.1 pls. I didn’t stumble upon API difference in compiling Unreal Engine side things. I can not ttestify for 24.0.*
I’ve removed the OSVR and SteamVR plugins from the project (they aren’t needed). I also unticked the packaging options for them on the android settings and the app now DOESN’T crash on startup!
I’m left with some UMG stuff to sort out (but that’s something else haha) but the app works!
Thank you so much FilAl, you’ve been VERY helpful and very patient. I can’t thank you enough for helping me through this! You’re a legend