# \[4.7.2\] OS X Packaging to Android: NDK Fails

**URL:** <https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337>\
**Category:** Mobile\
**Tags:** Android-Packaging, MAC-OS-X, ndk, UE4-7, unreal-engine, Android, question\
**Created:** [March 5, 2015, 8:58am UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337 "2015-03-05T08:58:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Acrossfy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Acrossfy](https://forums.unrealengine.com/u/Acrossfy)\
**Post date:** [March 5, 2015, 8:58am UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337/1 "2015-03-05T08:58:20Z")

</div>

Hello guys,

I have an issue with building Android package. NDK fails with “armeabi-v7a” args. I can’t understand what wrong with it?

My device – Nexus 4, Android 5.0.1

Components version: android-ndk-r10c, apache-ant-1.9.4, jdk 1.7, android sdk 24.0.2. OS X 10.9.5 Mavericks.

See my log ([text version][1]):

[http://dl2.joxi.net/drive/0004/1339/312635/150305/c77edb19a1.jpg](http://dl2.joxi.net/drive/0004/1339/312635/150305/c77edb19a1.jpg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6888603d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6888603d](https://forums.unrealengine.com/u/anonymous_user_6888603d)\
**Post date:** [March 5, 2015, 5:04pm UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337/2 "2015-03-05T17:04:27Z")

</div>

I think the key may be here: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

Make sure that you’ve opened Xcode & agreed to let it install all its extras.

---

<div class="post-metadata">

**Author:** ![Acrossfy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Acrossfy](https://forums.unrealengine.com/u/Acrossfy)\
**Post date:** [March 5, 2015, 9:17pm UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337/3 "2015-03-05T21:17:42Z")

</div>

Running from terminal with ‘sudo’ doesn’t helps.

I tried this:

```
sudo open /Applications/Epic\ Games\ Launcher.app
sudo open /Volumes/Data Mac/Projects/MyProject.uproject
```

---

<div class="post-metadata">

**Author:** ![CloVeCaT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CloVeCaT](https://forums.unrealengine.com/u/CloVeCaT)\
**Post date:** [March 6, 2015, 12:23am UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337/4 "2015-03-06T00:23:27Z")

</div>

Might be totally unrelated since you are getting privilege error deploying while i’m building from source anyhow…  
from mine observation along with long useless hours of configuration I found out that for mine source version, the highest supported version of NDK is android-ndk-r10c.

So, you’ll better to try to use it, instead of android-ndk-r10d

---

<div class="post-metadata">

**Author:** ![Acrossfy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Acrossfy](https://forums.unrealengine.com/u/Acrossfy)\
**Post date:** [March 6, 2015, 8:25am UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337/5 "2015-03-06T08:25:46Z")

</div>

Unfortunately, it doesn’t help too…

Exception in UnrealBuildTool: ERROR: /Volumes/Data Mac/android-ndk-r10c/ndk-build failed with args APP\_ABI="armeabi-v7a " NDK\_DEBUG=1

---

<div class="post-metadata">

**Author:** ![Acrossfy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Acrossfy](https://forums.unrealengine.com/u/Acrossfy)\
**Post date:** [March 6, 2015, 8:58am UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337/6 "2015-03-06T08:58:06Z")

</div>

Also tried 9c and it’s doesn’t help too. Why EpicGames didn’t provide OS X guide yet, if there so many dependencies?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6888603d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6888603d](https://forums.unrealengine.com/u/anonymous_user_6888603d)\
**Post date:** [March 6, 2015, 10:41am UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337/7 "2015-03-06T10:41:25Z")

</div>

Open Xcode.app & allow it to show you the required license agreement dialog & install its necessary internal additions that need to be installed per-user account. None of UE’s build system will work properly until you do.

---

<div class="post-metadata">

**Author:** ![Acrossfy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Acrossfy](https://forums.unrealengine.com/u/Acrossfy)\
**Post date:** [March 6, 2015, 11:05am UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337/8 "2015-03-06T11:05:55Z")

</div>

I already did it. Doesn’t help.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6888603d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6888603d](https://forums.unrealengine.com/u/anonymous_user_6888603d)\
**Post date:** [March 6, 2015, 11:08am UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337/9 "2015-03-06T11:08:03Z")

</div>

Can you add the log from a new build then? I need to know if that message is still there & if it isn’t what may now be going wrong instead.

---

<div class="post-metadata">

**Author:** ![Acrossfy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Acrossfy](https://forums.unrealengine.com/u/Acrossfy)\
**Post date:** [March 6, 2015, 11:38am UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337/10 "2015-03-06T11:38:51Z")

</div>

It’s the same. Anyway I will provide you new log later today, because now I’m out of office.

---

<div class="post-metadata">

**Author:** ![Acrossfy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Acrossfy](https://forums.unrealengine.com/u/Acrossfy)\
**Post date:** [March 6, 2015, 10:50pm UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337/11 "2015-03-06T22:50:56Z")

</div>

New log - [LogPlayLevel: ====07.03.2015 1:36:38====PREPARING TO MAKE APK=================== - Pastebin.com](http://pastebin.com/zbL97zgV)

So, I tried to do that on other mac with the following configuration: 10.10 Yosemite, UE 1.7.2, ant 1.9.4, jdk 7, ndk 10c, sdk 24 and build was successful.

On my mac installed 10.9 Maverick. But I don’t think that it is the reason.

---

<div class="post-metadata">

**Author:** ![Acrossfy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Acrossfy](https://forums.unrealengine.com/u/Acrossfy)\
**Post date:** [March 7, 2015, 12:39am UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337/12 "2015-03-07T00:39:55Z")

</div>

The problem was in path to the ndk - path must be without spaces. Thats it 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a2fb347](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a2fb347](https://forums.unrealengine.com/u/anonymous_user_6a2fb347)\
**Post date:** [July 10, 2020, 3:52am UTC](https://forums.unrealengine.com/t/4-7-2-os-x-packaging-to-android-ndk-fails/309337/13 "2020-07-10T03:52:52Z")

</div>

download and instal sdk and ndk and jdk in this video :
