# ERROR: Platform Android is not a valid platform to build. Check that the SDK is installed properly

**URL:** <https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334>\
**Category:** Plugins\
**Tags:** error-building, unreal-engine, build-failed, Plugins, question\
**Created:** [October 22, 2020, 8:51pm UTC](https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334 "2020-10-22T20:51:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntoineOMEGA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AntoineOMEGA](https://forums.unrealengine.com/u/AntoineOMEGA)\
**Post date:** [October 22, 2020, 8:51pm UTC](https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334/1 "2020-10-22T20:51:43Z")

</div>

I’m trying to use RunUAT.bat to build a plugin but it fails and displays this error message - ERROR: Platform Android is not a valid platform to build. Check that the SDK is installed properly.

I have used Visual Studio Installer to get Android SDK but that didn’t fix the issue. Will downloading Android Studio fix it or is the issue caused by something else?

---

<div class="post-metadata">

**Author:** ![ubershmekel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ubershmekel](https://forums.unrealengine.com/u/ubershmekel)\
**Post date:** [December 28, 2020, 8:58am UTC](https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334/2 "2020-12-28T08:58:33Z")

</div>

I had to install the right version of the SDK, NDK and JDK to get around the `Platform Android is not a valid platform to build` error.

- JDK - NOT JDK 15, but rather JDK 8, for which the Oracle site is broken. You have to click “accept” and then take the link for the JDK from the button’s `nexturl` eg from [https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-windows-x64.exe](https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-windows-x64.exe) just take the [https://download.oracle.com/otn/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-windows-x64.exe](https://download.oracle.com/otn/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-windows-x64.exe) ending
- SDK was installed when I installed android studio
- NDK I had too look in UE\_4.25\Engine\Extras\Android\SetupAndroid.bat to find that I was supposed to get version 21.1.6352462. To install this, I had to go to `Android Studio` → `SDK Manager` → `SDK Tools` → check the “Show Package Details” box → Then get the right version of the NDK installed.

After all this - I had to go into the Unreal Engine project settings, Platform, Android SDK, then set all 3 of the above settings to their correct directory.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c92da606](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c92da606](https://forums.unrealengine.com/u/anonymous_user_c92da606)\
**Post date:** [December 28, 2020, 12:25pm UTC](https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334/3 "2020-12-28T12:25:35Z")

</div>

Recently I found one rather interesting [android spy apps](https://www.mspy.com/android-spy.html) project, which is a useful project for me. Besides, this project inspires me a lot. I am happy that you managed to find a solution to the problem, and I’m grateful that you also shared your solution.

---

<div class="post-metadata">

**Author:** ![lehuan5062](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lehuan5062](https://forums.unrealengine.com/u/lehuan5062)\
**Post date:** [December 4, 2021, 2:35am UTC](https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334/5 "2021-12-04T02:35:22Z")

</div>

This works, thanks!  
Edit: until I get the “cmd.exe failed…” error.

---

<div class="post-metadata">

**Author:** ![Online\_Learner\_XWYN1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Online\_Learner\_XWYN1](https://forums.unrealengine.com/u/Online_Learner_XWYN1)\
**Post date:** [May 1, 2022, 7:11am UTC](https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334/6 "2022-05-01T07:11:56Z")

</div>

In my experience, UE needs to use the default JDK of Android Studio 4.0  
I installed open jdk8 because I am trying unity  
Uninstalling open JDK and reinstalling Android Studio 4.0 will be useful,

---

<div class="post-metadata">

**Author:** ![GizehTriana](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GizehTriana](https://forums.unrealengine.com/u/GizehTriana)\
**Post date:** [January 30, 2023, 8:07am UTC](https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334/7 "2023-01-30T08:07:20Z")

</div>

You can find earlier JDK here.

[Java Archive Downloads - Java SE 8 (oracle.com)](https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html)

---

<div class="post-metadata">

**Author:** ![ngominhtri068](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ngominhtri068](https://forums.unrealengine.com/u/ngominhtri068)\
**Post date:** [October 20, 2023, 2:28am UTC](https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334/8 "2023-10-20T02:28:09Z")

</div>

I fix it by my own way.

1. i install new version of .Net. i use ue5.2 so sysem recomend me install .NET 6.0.302. Find it and install it.  

2. I choose newer SDK and NDK. This is my screenshot

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/f/b0fd48f546e82fe3a218b25b0d10eecc1d57e796.png)  
 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/9/049d58e9e12e8cb16d5caa63ddb2132fff6e9673.png)

You can install New API version in Android studio in configure setting.  
I dont know if it work for you. But i guest you should try

---

<div class="post-metadata">

**Author:** ![chuklov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chuklov](https://forums.unrealengine.com/u/chuklov)\
**Post date:** [November 22, 2023, 9:56pm UTC](https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334/9 "2023-11-22T21:56:06Z")

</div>

> [@ubershmekel](#):
>
> `Platform Android is not a valid platform to build` error.

I have found the issue in UE5.3 that it sets NDK link incorrectly after each build and you need to set it again. You do not need to reboot your Windows, but you need to set it again after each build.

 ![variables](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/5/db55ef7e530ff1cae0950707cfd721a73e7b5e25.png)

UE 5.X becomes a stupid engine with lots of issues. I have submitted a bug, but for the last 5 years, I have never gotten an email that the bug has been added, reviewed, or solved.

---

<div class="post-metadata">

**Author:** ![Marvellamas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marvellamas/32/88710_2.png) [@Marvellamas](https://forums.unrealengine.com/u/Marvellamas)\
**Post date:** [December 11, 2023, 10:50am UTC](https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334/10 "2023-12-11T10:50:38Z")

</div>

Hi  
where i can find this settings?

---

<div class="post-metadata">

**Author:** ![chuklov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chuklov](https://forums.unrealengine.com/u/chuklov)\
**Post date:** [December 19, 2023, 8:56pm UTC](https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334/11 "2023-12-19T20:56:44Z")

</div>

This is Windows environment variables: [this should help](https://www.howtogeek.com/787217/how-to-edit-environment-variables-on-windows-10-or-11/#:~:text=To%20configure%20your%20environment%20variables,%2C%20click%20%22Environment%20Variables.%22)

---

<div class="post-metadata">

**Author:** ![fortwos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fortwos](https://forums.unrealengine.com/u/fortwos)\
**Post date:** [January 17, 2024, 8:53am UTC](https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334/12 "2024-01-17T08:53:09Z")

</div>

This works, thanks!  
NDK\_ROOT settings.

---

<div class="post-metadata">

**Author:** ![raianlp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@raianlp](https://forums.unrealengine.com/u/raianlp)\
**Post date:** [June 27, 2024, 10:58pm UTC](https://forums.unrealengine.com/t/error-platform-android-is-not-a-valid-platform-to-build-check-that-the-sdk-is-installed-properly/473334/13 "2024-06-27T22:58:03Z")

</div>

This is the solution! thank you ma man!  
Unreal 5.4 seems to be really bad reading path with both “/” and "". I replaced all “/” with "" and the issue has been fixed!
