# Android SDK not installing from CodeWorks on MacOS

**URL:** <https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435>\
**Category:** Mobile\
**Tags:** Android-Packaging, unreal-engine, UE4, question\
**Created:** [October 4, 2016, 2:39pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435 "2016-10-04T14:39:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![newlevel1001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@newlevel1001](https://forums.unrealengine.com/u/newlevel1001)\
**Post date:** [October 4, 2016, 2:39pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/1 "2016-10-04T14:39:41Z")

</div>

Hi, Im trying to package an Android game in Unreal Engine. Ive tried to install Android SDK using Nvidia Codeworks for Android Component Manager. It gives me the error shown in the picture. Ive tried to install it on 2 Macbooks running where java 6 and latest version of java jdk are both installed but it gives the same error on both systems. And ive tried both 1R4u2 and 1R5. Same result. Any solutions guys?

 ![109648-screen+shot+2016-10-04+at+6.34.10+pm.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/0/1500f13c161b5be1d187e83884569d1cba5bf793.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [October 6, 2016, 7:27pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/2 "2016-10-06T19:27:24Z")

</div>

Hi sheikhumar93,

I’ve just finished testing on our Mac running and all the SDK settings carried over from, except I did have to reinstall Java 6 and Java 7, a step you might want to try. Also:

1. Also are you running UE4.12?
2. Is this on a machine you used to run on, or is this a new machine with installed?
3. If it used to run, did you have the SDKs set up successfully before to where you could package for Android?

Lastly please copy the entire text of the error into a text document and post here.

Thanks,

H.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [October 10, 2016, 2:02pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/3 "2016-10-10T14:02:23Z")

</div>

Hi shiekhumar93,

Since we have not heard back from you in a while, we are marking this post “resolved” for tracking purposes. However, if you are still having problems installing Android Codeworks on Macs running , please respond with the requested information and we will continue to investigate.

Thanks,

H.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f787affa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f787affa](https://forums.unrealengine.com/u/anonymous_user_f787affa)\
**Post date:** [October 13, 2016, 11:40am UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/4 "2016-10-13T11:40:12Z")

</div>

Since we have not heard back from you in a while, we are marking this post “resolved” for tracking purposes. However, if you are still having problems installing Android Codeworks on Macs running , please respond with the requested information and we will continue to investigate.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f787affa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f787affa](https://forums.unrealengine.com/u/anonymous_user_f787affa)\
**Post date:** [October 13, 2016, 11:40am UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/5 "2016-10-13T11:40:44Z")

</div>

I’m going through the same problem. I do not know what to do. I followed all procedures and presented the same mistake

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f787affa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f787affa](https://forums.unrealengine.com/u/anonymous_user_f787affa)\
**Post date:** [October 13, 2016, 11:41am UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/6 "2016-10-13T11:41:04Z")

</div>

Is there any other way to install these packages?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f787affa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f787affa](https://forums.unrealengine.com/u/anonymous_user_f787affa)\
**Post date:** [October 13, 2016, 11:50am UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/7 "2016-10-13T11:50:50Z")

</div>

Hello, H.

Maybe my answers can also help shiekhumar93, since we are going through the same problem…

Also are you running UE4.12?  
The version I am using is 4.13.

Is this on a machine you used to run on, or is this a new machine with installed?  
My MacBook was made to upgrade the .

If it used to run, did you have the SDKs set up successfully before to where you could package for Android?  
I did not have the SDKs created before Upgrade

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f787affa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f787affa](https://forums.unrealengine.com/u/anonymous_user_f787affa)\
**Post date:** [October 13, 2016, 12:22pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/8 "2016-10-13T12:22:50Z")

</div>

This is the error message that appears:

Installing Android SDK Base 24.4.1\_u1 failed.

Return Code: 2  
failed MSpanList\_Insert 0x2df7f0 0x4dd9124966ce 0x0  
fatal error: MSpanList\_Insert

goroutine 16 [running]:  
runtime.throw(0x26a8bb)

/home/amyl/software/go/src/pkg/runtime/panic.c:520 +0x69 fp=0x4685d8 sp=0x4685c0  
runtime.MSpanList\_Insert(0x27e0c8, 0x2cba20)

/home/amyl/software/go/src/pkg/runtime/mheap.c:618 +0x8a fp=0x468600 sp=0x4685d8  
MHeap\_FreeLocked(0x27de40, 0x2cba20)

/home/amyl/software/go/src/pkg/runtime/mheap.c:445 +0x187 fp=0x468640 sp=0x468600  
MHeap\_AllocLocked(0x27de40, 0x3, 0x2c)

/home/amyl/software/go/src/pkg/runtime/mheap.c:257 +0x288 fp=0x468680 sp=0x468640  
runtime.MHeap\_Alloc(0x27de40, 0x3, 0x1000000002c)

/home/amyl/software/go/src/pkg/runtime/mheap.c:178 +0x7b fp=0x4686a8 sp=0x468680  
MCentral\_Grow(0x289ac8)

/home/amyl/software/go/src/pkg/runtime/mcentral.c:265 +0x89 fp=0x468708 sp=0x4686a8  
runtime.MCentral\_CacheSpan(0x289ac8)

/home/amyl/software/go/src/pkg/runtime/mcentral.c:84 +0x14b fp=0x468738 sp=0x468708  
runtime.MCache\_Refill(0x2b7000, 0xc20000002c)

/home/amyl/software/go/src/pkg/runtime/mcache.c:78 +0x119 fp=0x468768 sp=0x468738  
runtime.mallocgc(0x1200, 0x147e60, 0x0)

/home/amyl/software/go/src/pkg/runtime/malloc.goc:152 +0x30e fp=0x4687d0 sp=0x468768  
runtime.new(0x174e60, 0x0)

/home/amyl/software/go/src/pkg/runtime/malloc.goc:826 +0x3b fp=0x4687f0 sp=0x4687d0  
compress/flate.NewReader(0x2c7ec0, 0xc2080e8d50, 0x0, 0x0)

/home/amyl/software/go/src/pkg/compress/flate/inflate.go:686 +0x4f fp=0x468828 sp=0x4687f0  
archive/zip.(\*File).Open(0xc2080579e0, 0x0, 0x0, 0x0, 0x0)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [October 13, 2016, 1:56pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/9 "2016-10-13T13:56:13Z")

</div>

Hi v.el,

This has been answered on the following AnswerHub post: [fatal error: MSpanList\_Insert - Can’t install android codeworks under OSX](https://answers.unrealengine.com/questions/499608/fatal-error-mspanlist-insert-cant-install-android.html)

In short, this is not an issue with UE4 per se, but rather with Nvidia’s SDK installer. It has been reported that you can download the new installer here: [Download Center](https://developer.nvidia.com/gameworksdownload#?dn=codeworks-for-android-1r5)

Please try that installer and let us know if it does not work for you.

Thanks,

H.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f787affa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f787affa](https://forums.unrealengine.com/u/anonymous_user_f787affa)\
**Post date:** [October 13, 2016, 5:27pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/10 "2016-10-13T17:27:25Z")

</div>

Hi, ,

Thank you for answering our questions quickly. Tonight I will do this test and I will certainly return the message presenting the test result, okay?

Thanks so much.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f787affa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f787affa](https://forums.unrealengine.com/u/anonymous_user_f787affa)\
**Post date:** [October 14, 2016, 1:19pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/11 "2016-10-14T13:19:32Z")

</div>

Hi, ,

Well, I am here to introduce a test return what I did yesterday, according to their orientation. I managed to install the packages. So I started to do the next step is to compile the project. Presented an error called “RunUAT ERROR:. AutomationTool Was Unable to run successfully” I realized in my search here several people also experienced this problem. It is seen that in most cases the solution was to make the configuration change in the developer. I made this change but there is still the same problem. I created a new clean design and the same problem appeared in this I am sending the log of the two cases. I believe that lack little for me to compile my project, but, as I am new in Unreal, from this point on I have limited knowledge. Help me again. Thank you so muchClean Project Unreal  
Log Error Project

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [October 14, 2016, 2:41pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/12 "2016-10-14T14:41:36Z")

</div>

The Error in the provided logs is the same one reported here: [Error Building for android on 4.12](https://.unrealengine.com/showthread.php?114994-Error-Building-for-android-on-4-12&p=553468)

Please try the troubleshooting steps there.

A few other things to consider:

- Disable the GoogleVR plugin if enabled
- For troubleshooting purposes, try publishing a Blank Blueprint ThirdPerson Template project to the desktop with neither armV7 or arm64 selected in your Android settings.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f787affa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f787affa](https://forums.unrealengine.com/u/anonymous_user_f787affa)\
**Post date:** [October 14, 2016, 5:35pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/13 "2016-10-14T17:35:22Z")

</div>

Hello, ,

Again, thank you for the clarification. I did what you asked, I identified the my device processor and let only one selected in the Android Settings, cleaned up the files in the Binaries and Intermediate folders of my project, I disabled Google VR Motion, restarted my MackBook, made a new compilation and presented the results as described in the .txt file attached. The RunUAT error still continues but I believe there was a breakthrough, friend, and I will need your support to make this analysis again to see what is still missing. Again, thank you.

[Log][1]

![110910-screen+shot+2016-10-14+at+13.53.03.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/9/6d9b9c29b6fa109f3c9c1f9b2af3812e149d0664.png)

![110910-screen+shot+2016-10-14+at+13.53.03.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/9/6d9b9c29b6fa109f3c9c1f9b2af3812e149d0664.png)

 ![110923-screen+shot+2016-10-14+at+12.33.45.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/7/75752b11f68389bf19b3cd0055cba863b74d9e1d.png)

 ![110924-screen+shot+2016-10-14+at+12.51.39.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/d/f2d4be2832bde280c76a96d056400789f2d5941e.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [October 14, 2016, 7:14pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/14 "2016-10-14T19:14:25Z")

</div>

The error in your latest log matches the error on this forum post: [Packaging Errog… Please Help](https://.unrealengine.com/showthread.php?114196-Packaging-Error-PLEASE-HELP)

Please try the solution posted there and let me know if it does not resolve the issue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f787affa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f787affa](https://forums.unrealengine.com/u/anonymous_user_f787affa)\
**Post date:** [October 16, 2016, 1:51am UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/15 "2016-10-16T01:51:04Z")

</div>

Hello,

I would like to once again thank for helping me solve this problem. Now I’m able to compile my game straight from my device. I installed JRE 8 and JDK 8 ()() and follow the instructions on the links () and (). To successfully install the JRE I had to uninstall the JRE version installed on my Mackbook. To do this, follow the instructions contained in the two links above. To be able to install all the packages I opened the Eclipse Luna and accessed the SDK Manager “Window / Android SDK Manager” within the own Eclipse Luna. Then I downloaded all the files within the folder NVPACK previously created by Codeworks. The NDK packages (android-ndk-r13-darwin-x86\_64.zip) and ANT (Apache Ant 1.9.7 Released) I downloaded the latest version directly from the site too () and (), respectively and BINGO!

 ![111070-screen+shot+2016-10-15+at+22.31.51.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/8/bb826b540744b930b776662720545f62607a7ce3.png)

 ![111071-screen+shot+2016-10-15+at+22.33.31.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/5/9057e34327b744e346e46f04a3b03ebf92d7aa59.png)

![111072-screen+shot+2016-10-15+at+22.42.50.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/7/667b3e8eb8a94e853557f8f1f3e136d4323422f6.png)

[BINGO!][4]

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [October 17, 2016, 7:10pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/16 "2016-10-17T19:10:29Z")

</div>

Thanks for taking the time to post in detail how to install the JRE 8 and JDK 8 and update the NDK packages for other users that may be experiencing this issue in .

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f787affa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f787affa](https://forums.unrealengine.com/u/anonymous_user_f787affa)\
**Post date:** [October 18, 2016, 4:02pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/17 "2016-10-18T16:02:45Z")

</div>

Hello, ,

I thank you for the availability to help me in solving this problem.

---

<div class="post-metadata">

**Author:** ![mdcw9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mdcw9](https://forums.unrealengine.com/u/mdcw9)\
**Post date:** [February 15, 2017, 4:38pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/18 "2017-02-15T16:38:44Z")

</div>

If anyone is still having trouble with this, I have made a very straight forward guide: [Physica Games - Unreal Engine V4.14 Cannot Deploy to Android](https://sites.google.com/view/physicagames/unreal-engine-troubleshooting/unreal-engine-v4-14-cannot-deploy-to-android)

It is worth a try first, before attempting what other posters in this topic have suggested, as it is very straight forward. Hope it helps

---

<div class="post-metadata">

**Author:** ![kreshnov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kreshnov](https://forums.unrealengine.com/u/kreshnov)\
**Post date:** [September 24, 2018, 2:42pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/19 "2018-09-24T14:42:04Z")

</div>

Thank you mdcw9,  
You are a life saver! 🙂

---

<div class="post-metadata">

**Author:** ![mdcw9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mdcw9](https://forums.unrealengine.com/u/mdcw9)\
**Post date:** [September 24, 2018, 4:36pm UTC](https://forums.unrealengine.com/t/android-sdk-not-installing-from-codeworks-on-macos/372435/20 "2018-09-24T16:36:20Z")

</div>

I’m very glad it helped kreshnov :). I remember how frustrating this was!
