# Unreal build crashing

**URL:** <https://forums.unrealengine.com/t/unreal-build-crashing/632391>\
**Category:** Mobile\
**Tags:** unreal-engine, UE5-0, Android, question\
**Created:** [August 22, 2022, 3:03pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391 "2022-08-22T15:03:50Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![stargate410911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stargate410911](https://forums.unrealengine.com/u/stargate410911)\
**Post date:** [August 22, 2022, 3:03pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/1 "2022-08-22T15:03:50Z")

</div>

i built an ar game in UE 5 but when i build it it keeps crashing at splash screen. from articles it stays that its an issue with UE5 and android. do you have any suggestions?

---

<div class="post-metadata">

**Author:** ![HashemShepard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hashemshepard/32/1201564_2.png) [@HashemShepard](https://forums.unrealengine.com/u/HashemShepard)\
**Post date:** [August 22, 2022, 3:10pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/2 "2022-08-22T15:10:53Z")

</div>

can you share the log file , we dont know what is the crash error  
also check this [Packaging Android Projects in Unreal Engine | Unreal Engine 5.0 Documentation](https://docs.unrealengine.com/5.0/en-US/packaging-android-projects-in-unreal-engine/)

---

<div class="post-metadata">

**Author:** ![stargate410911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stargate410911](https://forums.unrealengine.com/u/stargate410911)\
**Post date:** [August 22, 2022, 5:01pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/3 "2022-08-22T17:01:54Z")

</div>

what log are you referring to?

---

<div class="post-metadata">

**Author:** ![ZenLeviathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zenleviathan/32/551307_2.png) [@ZenLeviathan](https://forums.unrealengine.com/u/ZenLeviathan)\
**Post date:** [August 22, 2022, 5:07pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/4 "2022-08-22T17:07:59Z")

</div>

Hey @stargate410911,  
There is a crash log in your files that Unreal generates.

---

<div class="post-metadata">

**Author:** ![stargate410911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stargate410911](https://forums.unrealengine.com/u/stargate410911)\
**Post date:** [August 22, 2022, 8:56pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/5 "2022-08-22T20:56:34Z")

</div>

i think i have found the log you are referring to. but it wont let me send it. is there a line that i should be looking for in it?

---

<div class="post-metadata">

**Author:** ![christuusgnosis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@christuusgnosis](https://forums.unrealengine.com/u/christuusgnosis)\
**Post date:** [August 22, 2022, 10:15pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/6 "2022-08-22T22:15:45Z")

</div>

depends on the age of your phone  
if its newer  
you have to use arm 64 v7 with sdk 30+  
if its older it should be 29 or 30

---

<div class="post-metadata">

**Author:** ![stargate410911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stargate410911](https://forums.unrealengine.com/u/stargate410911)\
**Post date:** [August 23, 2022, 12:50pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/7 "2022-08-23T12:50:30Z")

</div>

have it all set like that and it is an newer phone.

---

<div class="post-metadata">

**Author:** ![christuusgnosis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@christuusgnosis](https://forums.unrealengine.com/u/christuusgnosis)\
**Post date:** [August 23, 2022, 5:22pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/8 "2022-08-23T17:22:16Z")

</div>

its possible you might need sdk 31 if ts really new  
build  
get the error  
and screen shot the red lines

---

<div class="post-metadata">

**Author:** ![stargate410911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stargate410911](https://forums.unrealengine.com/u/stargate410911)\
**Post date:** [August 24, 2022, 1:36pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/9 "2022-08-24T13:36:22Z")

</div>

i do have it set to 31 now. and when i have unreal build it and launch it on the phone it dose not give a red error in unreal. it says successful. it just crashes right away on the phone.

---

<div class="post-metadata">

**Author:** ![ZenLeviathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zenleviathan/32/551307_2.png) [@ZenLeviathan](https://forums.unrealengine.com/u/ZenLeviathan)\
**Post date:** [August 24, 2022, 4:55pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/10 "2022-08-24T16:55:39Z")

</div>

Hey @stargate410911,  
It could possibly be a memory leak causing the crash. [Debugging for Android devices in Unreal Engine | Unreal Engine 5.0 Documentation](https://docs.unrealengine.com/5.0/en-US/debugging-for-android-devices-in-unreal-engine/)  
When you debug, try checking out the Logcat to see what happens.  
I hope this helps!  
-Zen

---

<div class="post-metadata">

**Author:** ![christuusgnosis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@christuusgnosis](https://forums.unrealengine.com/u/christuusgnosis)\
**Post date:** [August 24, 2022, 7:49pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/11 "2022-08-24T19:49:17Z")

</div>

don’t launch it on the phone from unreal  
make an apk and install it on the phone manually from the phone.

---

<div class="post-metadata">

**Author:** ![stargate410911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stargate410911](https://forums.unrealengine.com/u/stargate410911)\
**Post date:** [August 30, 2022, 12:49pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/12 "2022-08-30T12:49:17Z")

</div>

which i have also done and its the same issue.

---

<div class="post-metadata">

**Author:** ![stargate410911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stargate410911](https://forums.unrealengine.com/u/stargate410911)\
**Post date:** [August 30, 2022, 1:59pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/13 "2022-08-30T13:59:47Z")

</div>

this is what the logcat says when it crashes:

2022-08-30 09:57:24.391 13407-13426/com.xxxxxxx.xxxxxxxpoc E/AndroidRuntime: FATAL EXCEPTION: pool-4-thread-1  
Process: com.xxxxxxx.xxxxxxxpoc, PID: 13407  
java.lang.IllegalArgumentException: com.xxxxxxx.xxxxxxxpoc: Targeting S+ (version 31 and above) requires that one of FLAG\_IMMUTABLE or FLAG\_MUTABLE be specified when creating a PendingIntent.  
Strongly consider using FLAG\_IMMUTABLE, only use FLAG\_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.  
at android.app.PendingIntent.checkFlags(PendingIntent.java:382)  
at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:673)  
at android.app.PendingIntent.getBroadcast(PendingIntent.java:660)  
at androidx.work.impl.utils.ForceStopRunnable.getPendingIntent(ForceStopRunnable.java:196)  
at androidx.work.impl.utils.ForceStopRunnable.isForceStopped(ForceStopRunnable.java:128)  
at androidx.work.impl.utils.ForceStopRunnable.run(ForceStopRunnable.java:93)  
at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)  
at java.lang.Thread.run(Thread.java:920)

---

<div class="post-metadata">

**Author:** ![ZenLeviathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zenleviathan/32/551307_2.png) [@ZenLeviathan](https://forums.unrealengine.com/u/ZenLeviathan)\
**Post date:** [August 30, 2022, 3:26pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/14 "2022-08-30T15:26:54Z")

</div>

Hey @stargate410911,  
I’m not entirely sure how Unreal handles it, but Android 12 API 31 requires that specified pending intent, but I would assume this is just an error that occurred when you updated to the newest version. I found an answer on StackOverflow that might answer your problem. [java - MediaSessionCompat:Targeting S+ (version 31 and above) requires that one of FLAG\_IMMUTABLE or FLAG\_MUTABLE be specified when creating a PendingIntent - Stack Overflow](https://stackoverflow.com/questions/68473542/mediasessioncompattargeting-s-version-31-and-above-requires-that-one-of-flag).  
I hope this can help!  
-Zen

---

<div class="post-metadata">

**Author:** ![stargate410911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stargate410911](https://forums.unrealengine.com/u/stargate410911)\
**Post date:** [August 31, 2022, 3:46pm UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/15 "2022-08-31T15:46:56Z")

</div>

i fixed the issue. so i made a new project and move everything over there. and now i have no issue. so it was something with the 5.0.0 build of UE5. the newer versions are fine.

---

<div class="post-metadata">

**Author:** ![Asta1001](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/asta1001/32/960578_2.png) [@Asta1001](https://forums.unrealengine.com/u/Asta1001)\
**Post date:** [November 15, 2022, 9:25am UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/16 "2022-11-15T09:25:13Z")

</div>

hey can you explain exactly what you did ?

Im facing the same problem the apk opens shows splash screen and then gets crash

---

<div class="post-metadata">

**Author:** ![ziiOn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ziiOn](https://forums.unrealengine.com/u/ziiOn)\
**Post date:** [December 29, 2022, 3:19am UTC](https://forums.unrealengine.com/t/unreal-build-crashing/632391/17 "2022-12-29T03:19:06Z")

</div>

didnt work for me
