Great, I had the same error and the new NDK works, thanks!
- Android Studio: Install the NDK 25.1.8937393
To switch from UE5.0 to UE5.1 I had to do more changes. Maybe it helps somebody:
- Android Studio: SDK Platform to 29 (Quest 2 is Android 10)
- Android Studio: Android SDK Tools to 30.0.3
- Android Studio: Command-line to 8.0 latest
- Android Studio: CMake to 3.10.2.4988404
- SetupAndroid.bat to Update SDK
- UE5.1: Settings, Platforms, Android SDK change the NDK path
- UE5.1: Settings, Platforms, Android change Target SDK Version to 29 (Android 10)
- UE5.1: Platforms (Launch), Android, Quest 2 do Update Device and restart UE to get SDK Managment “Installed: r25b”
Now it works again.