Why it try to Build for Android when It never suppose to

I successfully built & packaged my plugin for most of the UE 5. versions, everything is fine and my plugins are submitted to the marketplace. And I wanted to do that for 4.27 as well. But build fails at start with a weird error:

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

What is it? I never intended develop anything related to smartphones, why it even appear in my build console?

My target platforms in .uplugin are:

"PlatformAllowList": [
	"Win64",
	"Mac",
	"Linux"
]

(post deleted by author)

Thanks, I am using batch builds as well, building for many versions simultaneously. It just fails for 4.27 specifically.

AND, I just noticed something very intriguing when created completely fresh C++ project on 4.27, with completely clean BP Library C++ plugin with no extra code:

I telling you it is all weird, I never specified such platforms, something wrong with 4.27, here is my .uplugin file section:

(post deleted by author)

I fixed this one and it gave me the second error.

  1. Specifying PlatformAllow just in .uplugin wasn’t enough. Added in .bat directly -TargetPlatforms=Win64 fixed this issue.
  2. Then there was another weird error ERROR: Visual Studio 2017 must be installed in order to build this target like what the hell, It is 2025 I have VS2022 with all stuff for UE, UE 5x versions are packaging and working well, whatever… Found that to fix it you add to .bat -VS2019(why not 17?). This worked.