# Fails to install Android SDK, NDK, etc properly

**URL:** <https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [May 7, 2020, 11:12pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047 "2020-05-07T23:12:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monsair](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Monsair](https://forums.unrealengine.com/u/Monsair)\
**Post date:** [May 7, 2020, 11:12pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/1 "2020-05-07T23:12:18Z")

</div>

I am trying to runa test cardboard vr app on android and started by following [this guide](https://docs.unrealengine.com/en-US/Platforms/VR/GoogleVR/QuickStart/index.html)until I got to the part where I had to add the SDK, NDK paths, at which point I realized I had to setup all of those. So, I began following [this guide](https://docs.unrealengine.com/en-US/Platforms/Mobile/Android/Setup/AndroidStudio/index.html) to install Studio and all that, but it fails at the part where you run androidsetup.bat. It gets to sdkmanager.bat, then says something about not finding something and downloading, then a bar starts across, gets to about 6%, and then the bar disappears and says it failed to find package 11db;3.1, and tells me to check the android studio install, as seen in the attached picture here.

 ![Screenshot-5.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/4/84d9ba6b213285dc96e3facb0e1f69d1133f8865.png)

I have done some decent troubleshooting. At first I figured it was because I also had some old install of AndroidStudio from some ROM work that I uninstalled but might have had some lingering files, so I tried to fully remove Android Studio, the SDK, and all other related files, as well as updating Java before reinstalling studio and running it again. It had the same behavior as above. I redid the entire process several times with the same result. To ensure it wasn’t something to do with my specific machine, I installed UE 4.25.0 on a different machine that had no other versions of UE, and had never had any Android related files whatsoever. It also failed at this step in the exact same way, so this issue doesn’t seem to be device specific.

Is there something glaring I am missing? And if not, can anyone else confirm this behavior?

Thanks in advance for any help you can provide.

---

<div class="post-metadata">

**Author:** ![Createlex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Createlex](https://forums.unrealengine.com/u/Createlex)\
**Post date:** [May 8, 2020, 4:58am UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/2 "2020-05-08T04:58:51Z")

</div>

I am also getting the same issue on the Mac as well. I also did a clean Mac OS and UE4.25 install and still get the same error.

---

<div class="post-metadata">

**Author:** ![xadamxful](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xadamxful](https://forums.unrealengine.com/u/xadamxful)\
**Post date:** [May 8, 2020, 3:59pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/3 "2020-05-08T15:59:41Z")

</div>

I am also having the same issue, I think it may be something to do with my account not having admin permissions. I’ll report back if i find a solution.

---

<div class="post-metadata">

**Author:** ![SAURABHTEMBHURNE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SAURABHTEMBHURNE](https://forums.unrealengine.com/u/SAURABHTEMBHURNE)\
**Post date:** [May 8, 2020, 4:42pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/4 "2020-05-08T16:42:35Z")

</div>

> [@Monsair](#):
>
> I am trying to runa test cardboard vr app on android and started by following [this guide](https://docs.unrealengine.com/en-US/Platforms/VR/GoogleVR/QuickStart/index.html)until I got to the part where I had to add the SDK, NDK paths, at which point I realized I had to setup all of those. So, I began following [this guide](https://docs.unrealengine.com/en-US/Platforms/Mobile/Android/Setup/AndroidStudio/index.html) to install Studio and all that, but it fails at the part where you run androidsetup.bat. It gets to sdkmanager.bat, then says something about not finding something and downloading, then a bar starts across, gets to about 6%, and then the bar disappears and says it failed to find package 11db;3.1, and tells me to check the android studio install, as seen in the attached picture here.
> 
> ![Screenshot-5.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/4/84d9ba6b213285dc96e3facb0e1f69d1133f8865.png)
> 
> I have done some decent troubleshooting. At first I figured it was because I also had some old install of AndroidStudio from some ROM work that I uninstalled but might have had some lingering files, so I tried to fully remove Android Studio, the SDK, and all other related files, as well as updating Java before reinstalling studio and running it again. It had the same behavior as above. I redid the entire process several times with the same result. To ensure it wasn’t something to do with my specific machine, I installed UE 4.25.0 on a different machine that had no other versions of UE, and had never had any Android related files whatsoever. It also failed at this step in the exact same way, so this issue doesn’t seem to be device specific.
> 
> Is there something glaring I am missing? And if not, can anyone else confirm this behavior?
> 
> Thanks in advance for any help you can provide.

having the same problem

---

<div class="post-metadata">

**Author:** ![DarknessFX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darknessfx/32/1194676_2.png) [@DarknessFX](https://forums.unrealengine.com/u/DarknessFX)\
**Post date:** [May 8, 2020, 6:23pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/5 "2020-05-08T18:23:28Z")

</div>

# I had the same error. I’ve got able to bypass the problem by editing the SetupAndroid.bat, line 75, and removing lld;3.1 from the install list:

call “%SDKMANAGER%” “platform-tools” “platforms;android-28” “build-tools;28.0.3” “cmake;3.10.2.4988404” “ndk;21.1.6352462”

---

<div class="post-metadata">

**Author:** ![xadamxful](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xadamxful](https://forums.unrealengine.com/u/xadamxful)\
**Post date:** [May 9, 2020, 7:51pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/6 "2020-05-09T19:51:17Z")

</div>

> [@DarknessFX](#):
>
> # I had the same error. I’ve got able to bypass the problem by editing the SetupAndroid.bat, line 75, and removing lld;3.1 from the install list:
> 
> call “%SDKMANAGER%” “platform-tools” “platforms;android-28” “build-tools;28.0.3” “cmake;3.10.2.4988404” “ndk;21.1.6352462”

Thank you! worked for me

---

<div class="post-metadata">

**Author:** ![F3NR1S](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@F3NR1S](https://forums.unrealengine.com/u/F3NR1S)\
**Post date:** [May 10, 2020, 9:29pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/7 "2020-05-10T21:29:58Z")

</div>

Same problem and same solution. Thanks!  
In addition: I had to create an empty “repositories.cfg” file in my /.android/ user configuration to bypass another check.  
Some improvements are needed to the Android dependencies installation.

---

<div class="post-metadata">

**Author:** ![anon63450084](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon63450084](https://forums.unrealengine.com/u/anon63450084)\
**Post date:** [May 10, 2020, 9:38pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/8 "2020-05-10T21:38:30Z")

</div>

Hello Guys, thanks its worked for me.

Special thanks @xadamxful

Best regards

---

<div class="post-metadata">

**Author:** ![DownDaWay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DownDaWay](https://forums.unrealengine.com/u/DownDaWay)\
**Post date:** [May 13, 2020, 6:10am UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/9 "2020-05-13T06:10:54Z")

</div>

Same and Same.  
Also needed empty “repositories.cfg” file.

Proper thanks! @DarknessFX, @F3NR1S

---

<div class="post-metadata">

**Author:** ![LuisAlaguna](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/luisalaguna/32/570408_2.png) [@LuisAlaguna](https://forums.unrealengine.com/u/LuisAlaguna)\
**Post date:** [May 18, 2020, 4:14pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/11 "2020-05-18T16:14:41Z")

</div>

> [@DarknessFX](#):
>
> # I had the same error. I’ve got able to bypass the problem by editing the SetupAndroid.bat, line 75, and removing lld;3.1 from the install list:
> 
> call “%SDKMANAGER%” “platform-tools” “platforms;android-28” “build-tools;28.0.3” “cmake;3.10.2.4988404” “ndk;21.1.6352462”

It works, but we still need\*\* LLDB\*\* for debugging.

---

<div class="post-metadata">

**Author:** ![Klian](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/klian/32/1207571_2.png) [@Klian](https://forums.unrealengine.com/u/Klian)\
**Post date:** [May 19, 2020, 2:30am UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/12 "2020-05-19T02:30:44Z")

</div>

> [@DarknessFX](#):
>
> # I had the same error. I’ve got able to bypass the problem by editing the SetupAndroid.bat, line 75, and removing lld;3.1 from the install list:
> 
> call “%SDKMANAGER%” “platform-tools” “platforms;android-28” “build-tools;28.0.3” “cmake;3.10.2.4988404” “ndk;21.1.6352462”

Thank you! \<3

---

<div class="post-metadata">

**Author:** ![dviciano](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dviciano](https://forums.unrealengine.com/u/dviciano)\
**Post date:** [May 21, 2020, 9:18pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/13 "2020-05-21T21:18:01Z")

</div>

> [@DarknessFX](#):
>
> # I had the same error. I’ve got able to bypass the problem by editing the SetupAndroid.bat, line 75, and removing lld;3.1 from the install list:
> 
> call “%SDKMANAGER%” “platform-tools” “platforms;android-28” “build-tools;28.0.3” “cmake;3.10.2.4988404” “ndk;21.1.6352462”

It works to me. Thanks.

---

<div class="post-metadata">

**Author:** ![Cody10](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cody10](https://forums.unrealengine.com/u/Cody10)\
**Post date:** [May 23, 2020, 3:52pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/14 "2020-05-23T15:52:30Z")

</div>

> [@DarknessFX](#):
>
> # I had the same error. I’ve got able to bypass the problem by editing the SetupAndroid.bat, line 75, and removing lld;3.1 from the install list:
> 
> call “%SDKMANAGER%” “platform-tools” “platforms;android-28” “build-tools;28.0.3” “cmake;3.10.2.4988404” “ndk;21.1.6352462”

## i did this but after i got this error :

Accept? (y/N): y  
=======================================] 100% Unzipping… android-ndk-r21b/sha  
The system cannot find the path specified.  
Success!  
ERROR: Invalid syntax. Default option is not allowed more than ‘2’ time(s).  
Type “SETX /?” for usage.  
ERROR: Invalid syntax. Default option is not allowed more than ‘2’ time(s).  
Type “SETX /?” for usage.  
Update failed. Did you accept the license agreement?  
Press any key to continue . . .

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3aacff32](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3aacff32](https://forums.unrealengine.com/u/anonymous_user_3aacff32)\
**Post date:** [May 24, 2020, 12:51pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/15 "2020-05-24T12:51:26Z")

</div>

> [@Monsair](#):
>
> I am trying to runa test cardboard vr app on android and started by following [this guide](https://docs.unrealengine.com/en-US/Platforms/VR/GoogleVR/QuickStart/index.html)until I got to the part where I had to add the SDK, NDK paths, at which point I realized I had to setup all of those. So, I began following [this guide](https://docs.unrealengine.com/en-US/Platforms/Mobile/Android/Setup/AndroidStudio/index.html) to install Studio and all that, but it fails at the part where you run androidsetup.bat. It gets to sdkmanager.bat, then says something about not finding something and downloading, then a bar starts across, gets to about 6%, and then the bar disappears and says it failed to find package 11db;3.1, and tells me to check the android studio install, as seen in the attached picture here.
> 
> ![Screenshot-5.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/4/84d9ba6b213285dc96e3facb0e1f69d1133f8865.png)
> 
> I have done some decent troubleshooting. At first I figured it was because I also had some old install of AndroidStudio from some ROM work that I uninstalled but might have had some lingering files, so I tried to fully remove Android Studio, the SDK, and all other related files, as well as updating Java before reinstalling studio and running it again. It had the same behavior as above. I redid the entire process several times with the same result. To ensure it wasn’t something to do with my specific machine, I installed UE 4.25.0 on a different machine that had no other versions of UE, and had never had any Android related files whatsoever. It also failed at this step in the exact same way, so this issue doesn’t seem to be device specific.
> 
> Is there something glaring I am missing? And if not, can anyone else confirm this behavior?
> 
> Thanks in advance for any help you can provide.

Ia have the same problem

---

<div class="post-metadata">

**Author:** ![Raglem](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/raglem/32/465658_2.png) [@Raglem](https://forums.unrealengine.com/u/Raglem)\
**Post date:** [May 27, 2020, 6:12pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/16 "2020-05-27T18:12:50Z")

</div>

> [@Cody10](#):
>
> ## i did this but after i got this error :
> 
> Accept? (y/N): y  
> =======================================] 100% Unzipping… android-ndk-r21b/sha  
> The system cannot find the path specified.  
> Success!  
> ERROR: Invalid syntax. Default option is not allowed more than ‘2’ time(s).  
> Type “SETX /?” for usage.  
> ERROR: Invalid syntax. Default option is not allowed more than ‘2’ time(s).  
> Type “SETX /?” for usage.  
> Update failed. Did you accept the license agreement?  
> Press any key to continue . . .

I’m getting the same error, and I haven’t been able to find a solution yet :s

---

<div class="post-metadata">

**Author:** ![ViceVersa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ViceVersa](https://forums.unrealengine.com/u/ViceVersa)\
**Post date:** [May 27, 2020, 10:27pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/17 "2020-05-27T22:27:19Z")

</div>

I just made a video on how to do this in unreal 4.25 [https://youtu.be/7c2L3OjabV4](https://youtu.be/7c2L3OjabV4)

---

<div class="post-metadata">

**Author:** ![Matter123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matter123](https://forums.unrealengine.com/u/Matter123)\
**Post date:** [June 8, 2020, 3:05pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/18 "2020-06-08T15:05:39Z")

</div>

> [@luispmelgar](#):
>
> I’m getting the same error, and I haven’t been able to find a solution yet :s

I’m still having this issue after running sdkmanager.bat --licenses

EDIT: Updating to 4.25.1 fixed this for me

---

<div class="post-metadata">

**Author:** ![ViceVersa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ViceVersa](https://forums.unrealengine.com/u/ViceVersa)\
**Post date:** [June 9, 2020, 9:24pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/19 "2020-06-09T21:24:45Z")

</div>

However, I will say that since the 4.25.1 update, nothing seems to be working, I get a completely different error now that isnt even echoed from that batch file,

---

<div class="post-metadata">

**Author:** ![abdallah\_belkhi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abdallah\_belkhi](https://forums.unrealengine.com/u/abdallah_belkhi)\
**Post date:** [June 22, 2020, 3:36pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/20 "2020-06-22T15:36:29Z")

</div>

> [@DarknessFX](#):
>
> # I had the same error. I’ve got able to bypass the problem by editing the SetupAndroid.bat, line 75, and removing lld;3.1 from the install list:
> 
> call “%SDKMANAGER%” “platform-tools” “platforms;android-28” “build-tools;28.0.3” “cmake;3.10.2.4988404” “ndk;21.1.6352462”

thank you brother it works for me but hope no other issues will come.

---

<div class="post-metadata">

**Author:** ![kiselev39280](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kiselev39280](https://forums.unrealengine.com/u/kiselev39280)\
**Post date:** [June 27, 2020, 5:39pm UTC](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047/21 "2020-06-27T17:39:45Z")

</div>

> [@ViceVersa](#):
>
> I just made a video on how to do this in unreal 4.25 [https://youtu.be/7c2L3OjabV4](https://youtu.be/7c2L3OjabV4)

I watch your video. Its help solve some problems. Thank you! But im have a new one. After im accept license agreement i see message: Warning: An error occurred while preparing SDK package Android SDK Platform 28: Tag mismatch!.  
Update failed. Please check the Android Studio install.ng platform-28\_r06.zip…

Somebody have same result?

[Next page](https://forums.unrealengine.com/t/fails-to-install-android-sdk-ndk-etc-properly/143047.md?page=2)
