I also have faced with a lot of troubles while trying to make things work. So here is a small list of my advices:
- Reinstall Android studio as it suggested here. I don’t sure is it necessary, but this may clear out results of all your failed attempts.
- Go to SDK manager and install additional Android Studio 10.0+
(R and Q)for API level 29 and 30. Uninstall SDK for API level 33. - Go to
C:\Users\<UserName>\AppData\Local\Android\Sdk\ndk\21.4.7075529\platforms. Firstly make sure that you have only thisNDKversion (21.4.7075529). Then check in the folder above for theandroid-29folder. - For launching on android always run the UE in administrator mode.
- In your projects settings manually set up
location of JAVAto the one installed with Android Studio (usually it isC:\Program Files\Android\Android Studio\jre). - In UE projects settings find
Android SDKsection and set these settings:SDK API levelto29andNDK API leveltoandroid-29. - After that try to launch the game on your device. If you got the
Failed to open descriptorerror, then create a build and install your game on the phone viabat-script.