I’m trying to package an android build on UE5.7.1 but I’m running into the error: ld.lld: error: undefined symbol: UE::Jni::FEnv::FEnv() along with several other Java-related errors.
Here’s what I tried:
- Installing everything using Turnkey and just using the defaults
- Installing android studio / ndk / jdk without Turnkey based on the exact versions as specified in Android Development Requirements for Unreal Engine | Unreal Engine 5.7 Documentation | Epic Developer Community
- Everything in Setting Up Android SDK and NDK for Unreal | Unreal Engine 4.27 Documentation | Epic Developer Community
- Changing the SDK/NDK versions in Project Settings > Android SDK
- Uninstalling any other Java installations
- Checking that my ANDROID_HOME, JAVA_HOME, NDK_ROOT, NDKROOT environment variables match the intended path
- Restarting my computer
- Reinstalling the SDK via the editor
- Choosing to build different android flavors
Is there anything else that I can try?