Closed
Description
Setting the Android minSdkVersion to 19 or 20 with
native/pkgs/native_assets_cli/lib/src/model/build_config.dart
Lines 70 to 80 in 279094d
causes the following at runtime when doing dlopen
:
Invalid argument(s): Couldn't resolve native function 'sum' in
'package:my_package/my_package_bindings_generated.dart' : Failed to load dynamic library
'libmy_package.so': Failed to load dynamic library 'libmy_package.so': dlopen failed: TLS symbol
"_ZZN8gwp_asan15getThreadLocalsEvE6Locals" in dlopened
"/data/app/~~II5Pe1_V-_9YOORXFmjkwA==/com.example.my_package-fBAv9YGX7hLvZudMWuFp7g==/lib/arm64/libmy_package.so"
referenced from
"/data/app/~~II5Pe1_V-_9YOORXFmjkwA==/com.example.my_package-fBAv9YGX7hLvZudMWuFp7g==/lib/arm64/libmy_package.so"
using IE access model.
A quick search reveals this might have to do with libc++ linking.
background info: https://android.googlesource.com/platform/ndk/+/master/docs/BuildSystemMaintainers.md#stl
It could also be related to
native/pkgs/native_toolchain_c/lib/src/cbuilder/run_cbuilder.dart
Lines 130 to 134 in 279094d
Discovered while testing API versions on