Packaging a UE4 Plugin: Changing the Target Platforms

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.

1 Like

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"
			]
		}
	]
}
4 Likes