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

This saved me SO much, thank you!! That was the issue for me as well.

I set mine to C:\Users$USERNAME\AppData\Local\Android\Sdk\ndk\21.1.6352462 and it works perfectly now. Obvious to me now but something I missed.

1 Like