# Andorid Package failed because of wrong lib path

**URL:** <https://forums.unrealengine.com/t/andorid-package-failed-because-of-wrong-lib-path/223503>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [July 30, 2020, 6:48am UTC](https://forums.unrealengine.com/t/andorid-package-failed-because-of-wrong-lib-path/223503 "2020-07-30T06:48:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fallen\_Inarius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fallen\_Inarius](https://forums.unrealengine.com/u/Fallen_Inarius)\
**Post date:** [July 30, 2020, 6:48am UTC](https://forums.unrealengine.com/t/andorid-package-failed-because-of-wrong-lib-path/223503/1 "2020-07-30T06:48:48Z")

</div>

when i try to package android i get error like this:

UATHelper: Packaging (Android (ASTC)): ld.lld: error: cannot open G:/repo/TUE/Engine/Source/ThirdParty/MSOC/lib: Is a directory  
UATHelper: Packaging (Android (ASTC)): clang++: error: linker command failed with exit code 1 (use -v to see invocation)  
PackagingResults: Error: cannot open G:/repo/TUE/Engine/Source/ThirdParty/MSOC/lib: Is a directory  
PackagingResults: Error: linker command failed with exit code 1 (use -v to see invocation)

photo show my build.cs file

if i add some random string to path like  
PublicAdditionalLibraries.Add(SoftWareOcclusionPath+ “lib/”+ libname+"/aaaaa");  
it will success

seems that unreal will delete last string when link lib

---

<div class="post-metadata">

**Author:** ![Biechiwonz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Biechiwonz](https://forums.unrealengine.com/u/Biechiwonz)\
**Post date:** [May 29, 2023, 3:20am UTC](https://forums.unrealengine.com/t/andorid-package-failed-because-of-wrong-lib-path/223503/3 "2023-05-29T03:20:51Z")

</div>

I have encountered the same problem as you, but there will be other issues when I add “/aaaaa” at the end of the path

---

<div class="post-metadata">

**Author:** ![SiriusSFB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SiriusSFB](https://forums.unrealengine.com/u/SiriusSFB)\
**Post date:** [April 22, 2024, 4:00pm UTC](https://forums.unrealengine.com/t/andorid-package-failed-because-of-wrong-lib-path/223503/4 "2024-04-22T16:00:22Z")

</div>

Did anyone ever solve this? Having the same issue.

---

<div class="post-metadata">

**Author:** ![Sitiana](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sitiana/32/1194605_2.png) [@Sitiana](https://forums.unrealengine.com/u/Sitiana)\
**Post date:** [October 21, 2024, 9:36am UTC](https://forums.unrealengine.com/t/andorid-package-failed-because-of-wrong-lib-path/223503/5 "2024-10-21T09:36:24Z")

</div>

I had the same issue. The problem was with the library, not because of Unreal build system.  
In my case mylibrary.a was compiled to Arm64 on Mac and somehow it didn’t work. When I configured Windows machine to compile mylibrary.a, then everything worked as expected.

The solution mentioned above with adding anything to path won’t work, you will get errors if you actually use anything from the library. Otherwise you don’t get errors, because the library is not even included in the build.
