# Packaging a UE4 Plugin: Changing the Target Platforms

**URL:** <https://forums.unrealengine.com/t/packaging-a-ue4-plugin-changing-the-target-platforms/472941>\
**Category:** Plugins\
**Tags:** package, platform-support, unreal-engine, Packaging, Plugins, question\
**Created:** [October 14, 2020, 10:52pm UTC](https://forums.unrealengine.com/t/packaging-a-ue4-plugin-changing-the-target-platforms/472941 "2020-10-14T22:52:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d4cf4603](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d4cf4603](https://forums.unrealengine.com/u/anonymous_user_d4cf4603)\
**Post date:** [October 14, 2020, 10:52pm UTC](https://forums.unrealengine.com/t/packaging-a-ue4-plugin-changing-the-target-platforms/472941/1 "2020-10-14T22:52:14Z")

</div>

**How may I change the target platforms for Plugin Packaging?** I currently am receiving an error with respect to packaging for Android, and **I do NOT want to currently package for Android**.

UATHelper: Package Plugin Task (Windows): Building plugin for target platforms: Android, IOS, Linux, LinuxAArch64, Win64, Win32

UATHelper: Package Plugin Task (Windows): Running: C:\Program Files\Epic Games\UE\_4.25\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Game Android Development -Project=“C:\_Packaged Plugins\ThirdParty\_TestPlugin\ThirdParty\_TestPlugin\ThirdParty\_TestPlugin\HostProject\HostProject.uproject” -plugin=“C:\_Packaged Plugins\ThirdParty\_TestPlugin\ThirdParty\_TestPlug  
in\ThirdParty\_TestPlugin\HostProject\Plugins\ThirdParty\_TestPlugin\ThirdParty\_TestPlugin.uplugin” -iwyu -noubtmakefiles -manifest=“C:\_Packaged Plugins\ThirdParty\_TestPlugin\ThirdParty\_TestPlugin\ThirdParty\_TestPlugin\HostProject\Saved\Manifest-UE4Game-Android-Development.xml” -nohotreload -architectures=armv7+arm64 -2017 -log=“C:\Users\AppData\Roaming  
\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE\_4.25\UBT-UE4Game-Android-Development.txt”

**UATHelper: Package Plugin Task (Windows): ERROR: Platform Android is not a valid platform to build. Check that the SDK is installed properly.**

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d4cf4603](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d4cf4603](https://forums.unrealengine.com/u/anonymous_user_d4cf4603)\
**Post date:** [October 16, 2020, 2:57am UTC](https://forums.unrealengine.com/t/packaging-a-ue4-plugin-changing-the-target-platforms/472941/2 "2020-10-16T02:57:30Z")

</div>

The answer to this question is to whitelist the target platforms for what you want your target platforms to be packaged. This is done is the following way:

In your .uplugin file:

```
{
	"FileVersion": 3,
	"Version": 1,
	"VersionName": "1.0",
	"FriendlyName": "TestPlugin",
	"Description": "Test Plugin",
	"Category": "MyCategory",
	"CreatedBy": "<Your Chosen Name>",
	"CreatedByURL": "",
	"DocsURL": "",
	"MarketplaceURL": "",
	"SupportURL": "",
	"CanContainContent": true,
	"IsBetaVersion": false,
	"IsExperimentalVersion": false,
	"Installed": false,
	"Modules": [
		{
			"Name": "TestPlugin",
			"Type": "Runtime",
			"LoadingPhase": "PostEngineInit",
			"AdditionalDependencies": [],
			"WhitelistPlatforms": [
				"Win64",
				"Win32"
			]
		}
	]
}

```

---

<div class="post-metadata">

**Author:** ![FaxLab3D](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/faxlab3d/32/1113136_2.png) [@FaxLab3D](https://forums.unrealengine.com/u/FaxLab3D)\
**Post date:** [February 18, 2023, 6:33pm UTC](https://forums.unrealengine.com/t/packaging-a-ue4-plugin-changing-the-target-platforms/472941/3 "2023-02-18T18:33:50Z")

</div>

This doesnt work for me… Its still building for linux etc. What could be the cause?

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [February 18, 2023, 6:39pm UTC](https://forums.unrealengine.com/t/packaging-a-ue4-plugin-changing-the-target-platforms/472941/4 "2023-02-18T18:39:03Z")

</div>

For a Runtime plugin in 5.0 and above, use “PlatformAllowList” rather than “WhitelistPlatforms”

---

<div class="post-metadata">

**Author:** ![FaxLab3D](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/faxlab3d/32/1113136_2.png) [@FaxLab3D](https://forums.unrealengine.com/u/FaxLab3D)\
**Post date:** [February 18, 2023, 6:41pm UTC](https://forums.unrealengine.com/t/packaging-a-ue4-plugin-changing-the-target-platforms/472941/5 "2023-02-18T18:41:44Z")

</div>

I know about that, it seems like i tried everything already, not sure what the issue is. Here is my code if anything [faxcorp/DriftIslandPlugin: Documentation (github.com)](https://github.com/faxcorp/DriftIslandPlugin)  
Maybe you can spot whats wrong? Thanks

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [February 18, 2023, 6:51pm UTC](https://forums.unrealengine.com/t/packaging-a-ue4-plugin-changing-the-target-platforms/472941/6 "2023-02-18T18:51:44Z")

</div>

Maybe try with just the “PlatformAllowList” and remove the Deny list and other whitelists?

That looks like a nice spline road system!

---

<div class="post-metadata">

**Author:** ![FaxLab3D](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/faxlab3d/32/1113136_2.png) [@FaxLab3D](https://forums.unrealengine.com/u/FaxLab3D)\
**Post date:** [February 18, 2023, 6:55pm UTC](https://forums.unrealengine.com/t/packaging-a-ue4-plugin-changing-the-target-platforms/472941/7 "2023-02-18T18:55:01Z")

</div>

I will try.  
Thanks! I hope I can share this with the world when I fix the error. I’ve got pretty nice island going, wanna put it up on the marketplace, but this error holds the whole project, getting denied by the Marketplace Engineers

Blessings @RecourseDesign

---

<div class="post-metadata">

**Author:** ![Loden-Heathen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/loden-heathen/32/753374_2.png) [@Loden-Heathen](https://forums.unrealengine.com/u/Loden-Heathen)\
**Post date:** [September 20, 2023, 3:18pm UTC](https://forums.unrealengine.com/t/packaging-a-ue4-plugin-changing-the-target-platforms/472941/8 "2023-09-20T15:18:59Z")

</div>

I’m working on the same sort of issue for a plugin in Unreal 5.3  
I found the documentation that lists the members but I would hardly call that documentation … more like list of members … 🤔

Is there any documentation that breaks down the .uplugin and shows its use cases as the file self

I managed to get it limited to Win64 … but attempting to add Linux and Mac to that causes it to build for Droid again

I would love to see a list of what the valid values are just guessing based on what I see elsewhere RE platform labels

---

<div class="post-metadata">

**Author:** ![DeathRaceReal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DeathRaceReal](https://forums.unrealengine.com/u/DeathRaceReal)\
**Post date:** [February 29, 2024, 2:22pm UTC](https://forums.unrealengine.com/t/packaging-a-ue4-plugin-changing-the-target-platforms/472941/9 "2024-02-29T14:22:36Z")

</div>

Same issue here.
