In Android development, it's rare to meet the following error.
dlopen failed: cannot locate symbol "__aarch64_ldadd4_relax"
I searched the whole internet for a solution, but couldn't get a practical one. Actually, the root cause is simple: The Android NDK is too old.
The solution in my case is:
- Upgrade CMake to the latest version.
- Upgrade Android NDK to the latest version.