Game Crashes on Android

Hello Everyone,

I have a game that a made for android and everything packaged fine when I tried to package it. However, when I install it on my phone the app immediately crashes when I try to open it. I checked the crash report for the phone and what is below was show.

--------- beginning of main
05-13 22:40:28.871 25492 25492 E AndroidRuntime: FATAL EXCEPTION: main
05-13 22:40:28.871 25492 25492 E AndroidRuntime: Process: com.KingOfQuestionsGames.Infinite, PID: 25492
05-13 22:40:28.871 25492 25492 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol “__aeabi_memmove” referenced by “/data/app/com.KingOfQuestionsGames.Infinite-1/lib/arm/libUE4.so”…
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at java.lang.Runtime.loadLibrary(Runtime.java:372)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1076)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at com.epicgames.ue4.GameActivity.(GameActivity.java:3453)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at java.lang.Class.newInstance(Native Method)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at android.app.Instrumentation.newActivity(Instrumentation.java:1096)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3085)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3351)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:222)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1796)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at android.os.Looper.loop(Looper.java:158)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7230)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
05-13 22:40:28.871 25492 25492 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
05-13 22:40:33.061 25514 25514 E AndroidRuntime: FATAL EXCEPTION: main
05-13 22:40:33.061 25514 25514 E AndroidRuntime: Process: com.KingOfQuestionsGames.Infinite, PID: 25514
05-13 22:40:33.061 25514 25514 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol “__aeabi_memmove” referenced by “/data/app/com.KingOfQuestionsGames.Infinite-1/lib/arm/libUE4.so”…

Can anyone tell me what may be the cause of the problem?
Thanks in advance.

I can give you a few things to try. From what I know this error is caused by your NDK API Level. For me, this error was solved when I set the NDK API Level to Android-19/Android-21. Also, tick the full rebuild option in the Packaging section.

If in case you have nativization on, turn it off and then package. Also,

If you can get your project onto the device, please provide your logcat files from the logs:

Attach your phone to the computer

Open NVPACK\android-sdk-windows\tools

Startup Monitor.bat as administrator

Create a filter for your Application

Launch the program and save the logs

Hmm. Does the map load properly inside the editor? Also, try this -

Add all your maps in this array

That worked perfectly and the games launches now. However there’s another problem now. My maps aren’t getting loaded. When I press a button that should open another map the app just closes. It doesn’t crash it just closes so I’m assuming it the map was packaged properly. Any advice on this?

Yes the maps do load inside the editor. I tried what you suggested but it still did not work.

I’m afraid that I need more information then, like how your Map is how you try to load it and also if your game is closing on the device, you should still run Monitor.bat to generate logs and find out what exactly is causing the app to close. Might be better to make a new question.