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 thisNDK
version (21.4.7075529
). Then check in the folder above for theandroid-29
folder. - For launching on android always run the UE in administrator mode.
- In your projects settings manually set up
location of JAVA
to the one installed with Android Studio (usually it isC:\Program Files\Android\Android Studio\jre
). - In UE projects settings find
Android SDK
section and set these settings:SDK API level
to29
andNDK API level
toandroid-29
. - After that try to launch the game on your device. If you got the
Failed to open descriptor
error, then create a build and install your game on the phone viabat
-script.