SDL Error
An error occurred while trying to start the application. Please try again and/or reinstall.
Error: dlopen failed: cannot locate symbol “__atomic_compare_exchange_4” referenced by “/data/app/org.openfl.samples.piratepig-BgzsbLgcUjNKy7Hr5k-Fvg==/lib/arm/libApplicationMain.so” …
Using the older Android NDK r15c may also resolve the __atomic_compare_exchange_4
issue.
EDIT: The __atomic_compare_exchange_4
issue can be resolved while using newer NDKs by updating to a newer hxcpp than 4.3.2. I was able to successfully build with both NDK 21.4.7075529 and NDK 25.2.9519653. At the time I am writing this, the hxcpp fix hasn’t yet been released to Haxelib, and you need to use hxcpp from GitHub. Details in this post from another thread: