# "/system/bin/sh: syntax error: unexpected '(' " when launching game in mobile.

**URL:** <https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747>\
**Category:** Programming & Scripting\
**Tags:** error, launcher, launcher-error, unreal-engine, Android, question\
**Created:** [February 29, 2024, 5:05pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747 "2024-02-29T17:05:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![EltonGamer11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EltonGamer11](https://forums.unrealengine.com/u/EltonGamer11)\
**Post date:** [February 29, 2024, 5:05pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/1 "2024-02-29T17:05:08Z")

</div>

I’m trying to launch my UE5 game on my Android, but it keeps saying “/system/bin/sh: syntax error: unexpected ‘(’” in the Unreal Output Log. Also, the game appears to not be loading, because the screen is completely black and I can’t hear anything… Can someone help me please?

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [February 29, 2024, 11:14pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/2 "2024-02-29T23:14:55Z")

</div>

In the error log you should be able to find something more than what you see there. Have you been able to package and launch a default game project on your phone?

---

<div class="post-metadata">

**Author:** ![EltonGamer11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EltonGamer11](https://forums.unrealengine.com/u/EltonGamer11)\
**Post date:** [March 3, 2024, 6:05pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/3 "2024-03-03T18:05:24Z")

</div>

Every time I tried to package, it took more than 9 hours and I ended up giving up. I’m trying to launch the game using the Project Launcher, but it keeps loading for hours. I really don’t know what to do

---

<div class="post-metadata">

**Author:** ![EltonGamer11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EltonGamer11](https://forums.unrealengine.com/u/EltonGamer11)\
**Post date:** [March 3, 2024, 6:15pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/4 "2024-03-03T18:15:04Z")

</div>

I opened the Device Output Log and found these errors & warnings:

[GameActivity] Warning: hardware does not match ro.soc.model, assuming hardware is correct  
Fatal error: [File:./Runtime/CookOnTheFly/Private/CookOnTheFlyServerConnection.cpp] [Line: 52]

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [March 3, 2024, 7:23pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/5 "2024-03-03T19:23:33Z")

</div>

9 hours? How big is the game size wise? What hardware are you running on your PC, it should at least be: [Hardware and Software Specifications for Unreal Engine | Unreal Engine 5.0 Documentation](https://docs.unrealengine.com/5.0/en-US/hardware-and-software-specifications-for-unreal-engine/)

---

<div class="post-metadata">

**Author:** ![EltonGamer11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EltonGamer11](https://forums.unrealengine.com/u/EltonGamer11)\
**Post date:** [March 4, 2024, 3:02am UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/6 "2024-03-04T03:02:21Z")

</div>

The game isn’t that big (only 1GB), that’s why I ended up giving up. And, yes. My PC has the recommended settings. I’m just having this problem when packaging/launching for Android… When I package to Windows everything works perfectly (the game has two different versions for each of the operational systems, I’m not that dumb haha 😅)

---

<div class="post-metadata">

**Author:** ![EltonGamer11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EltonGamer11](https://forums.unrealengine.com/u/EltonGamer11)\
**Post date:** [March 4, 2024, 3:05am UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/7 "2024-03-04T03:05:42Z")

</div>

I read the documentation you sent again and I think changing the Lumen lights to another type might help… I’ll try to package these changes and come back here tomorrow to let you know if it worked.

---

<div class="post-metadata">

**Author:** ![Tilotus1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tilotus1](https://forums.unrealengine.com/u/Tilotus1)\
**Post date:** [March 4, 2024, 3:14pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/8 "2024-03-04T15:14:09Z")

</div>

any luck? i have the same problem

---

<div class="post-metadata">

**Author:** ![EltonGamer11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EltonGamer11](https://forums.unrealengine.com/u/EltonGamer11)\
**Post date:** [March 4, 2024, 4:17pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/9 "2024-03-04T16:17:04Z")

</div>

trying to package since 7AM… still no luck

---

<div class="post-metadata">

**Author:** ![Tilotus1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tilotus1](https://forums.unrealengine.com/u/Tilotus1)\
**Post date:** [March 4, 2024, 11:06pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/10 "2024-03-04T23:06:36Z")

</div>

i switched to 5.1 after doing some research to see if its smoother to work with the next step would be 4.27 but trying to keep it closer to the newer versions if possible ive gone through a million different videos and im about to test it on the phone now.

---

<div class="post-metadata">

**Author:** ![EltonGamer11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EltonGamer11](https://forums.unrealengine.com/u/EltonGamer11)\
**Post date:** [March 4, 2024, 11:19pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/11 "2024-03-04T23:19:11Z")

</div>

it worked?

---

<div class="post-metadata">

**Author:** ![Tilotus1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tilotus1](https://forums.unrealengine.com/u/Tilotus1)\
**Post date:** [March 5, 2024, 7:31am UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/12 "2024-03-05T07:31:12Z")

</div>

unfortunately no im back to the same scenario with syntax error

---

<div class="post-metadata">

**Author:** ![Tilotus1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tilotus1](https://forums.unrealengine.com/u/Tilotus1)\
**Post date:** [March 5, 2024, 7:32am UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/13 "2024-03-05T07:32:10Z")

</div>

I tried completely reseting the files before sdk and other setting changes in case anything was causing conflicts and it still resulted into the same thing

---

<div class="post-metadata">

**Author:** ![Tilotus1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tilotus1](https://forums.unrealengine.com/u/Tilotus1)\
**Post date:** [March 5, 2024, 7:44am UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/14 "2024-03-05T07:44:35Z")

</div>

all i could really find out its a typo in code but my problem is i only did blueprints. been at it the whole day i guess im going to figure out where the hell the code is. wasnt expecting this much trouble

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [March 5, 2024, 7:59pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/15 "2024-03-05T19:59:42Z")

</div>

Something else is completely wrong if it takes 9 hours to package a 1 GB file. Can you package a completely new project?

---

<div class="post-metadata">

**Author:** ![EltonGamer11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EltonGamer11](https://forums.unrealengine.com/u/EltonGamer11)\
**Post date:** [March 6, 2024, 8:17pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/16 "2024-03-06T20:17:47Z")

</div>

yes, I can package the same project for windows. Only the android version takes that long

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [March 6, 2024, 8:18pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/17 "2024-03-06T20:18:50Z")

</div>

No, I mean can you package a new project for your mobile device? It’s a good idea to test that out. If you can’t then it’s likely an Android Studio or phone issue.

---

<div class="post-metadata">

**Author:** ![EltonGamer11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EltonGamer11](https://forums.unrealengine.com/u/EltonGamer11)\
**Post date:** [March 6, 2024, 8:19pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/18 "2024-03-06T20:19:34Z")

</div>

oh, wait a minute. I’ll try right now

---

<div class="post-metadata">

**Author:** ![EltonGamer11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EltonGamer11](https://forums.unrealengine.com/u/EltonGamer11)\
**Post date:** [March 6, 2024, 8:59pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/19 "2024-03-06T20:59:24Z")

</div>

neither the new project launched correctly. it keeps loading forever

---

<div class="post-metadata">

**Author:** ![EliasWick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eliaswick/32/1175208_2.png) [@EliasWick](https://forums.unrealengine.com/u/EliasWick)\
**Post date:** [March 8, 2024, 9:33pm UTC](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747/20 "2024-03-08T21:33:16Z")

</div>

Alright, this is indicating that you are having issues with the installation of Android Studio. Have you restarted your PC since the Android Studio installation?

Follow this, and don’t be clever and change the settings from his: [https://youtu.be/OAYEpiTgeXI?si=yv0U6p9TrVGnGRQZ](https://youtu.be/OAYEpiTgeXI?si=yv0U6p9TrVGnGRQZ). Secondarily, install Android Studio to a path that doesn’t contain a space.  
❌ `C:\Programs\This Folder With Space\CantBeUsed`  
✅ `C:\Programs\ThisFolderWithSpace\CanBeUsed`

Also set your Phone to Developer Mode and allow USB connection to install application to the phone.

[Next page](https://forums.unrealengine.com/t/system-bin-sh-syntax-error-unexpected-when-launching-game-in-mobile/1720747.md?page=2)
