Forum Visual Studio

Visual studio 2019 cant load native .so files from referenced android binding project

Hi,

The same libraries/project with visual studio 2017 works perfectly well.

I have a binding project with the the following folder structure:
lib/armeabi-v7a/*.so, all .so set to EmbeddedNativeLibrary.

The “main app” references this binding project.
In Visual studio 2019 And new VS for Mac, the files are still in the APK, BUT it cannot load the .so files.(APK sizes are rougly the same, 90mb vs 90.5mb).

If i copy this folder structure directly into the main app , lib/armeabi-v7a/*.so, setting all .so to AndroidNativeLibrary, it works with 2019/VS for Mac.
When referencing it from another project, it does not work with 2019.
I cannot send the .so files as these are private libs.

Proguard is turned off.

Do you have any idea is different to 2019?

Log:
.294 D/Mono (29648): DllImport error loading library ‘./libamalgam-swig.so’: ‘dlopen failed: cannot locate symbol “__emutls_get_address” referenced by “/data/app/com.onespatial.Editor.MobileEditor-1/lib/arm/libxercesc.so”…’.
04-29 13:15:11.294 D/Mono (29648): DllImport error loading library ‘/system/lib/libamalgam-swig’: ‘dlopen failed: library “/system/lib/libamalgam-swig” not found’.
04-29 13:15:11.295 D/Mono (29648): DllImport error loading library ‘/system/lib/libamalgam-swig.so’: ‘dlopen failed: library “/system/lib/libamalgam-swig.so” not found’.
04-29 13:15:11.296 D/Mono (29648): DllImport error loading library ‘libamalgam-swig’: ‘dlopen failed: library “libamalgam-swig” not found’.
04-29 13:15:11.863 D/Mono (29648): DllImport error loading library ‘libamalgam-swig.so’: ‘dlopen failed: cannot locate symbol “__emutls_get_address” referenced by “/data/app/com.onespatial.Editor.MobileEditor-1/lib/arm/libxercesc.so”…’.
04-29 13:15:11.864 D/Mono (29648): DllImport error loading library ‘amalgam-swig’: ‘dlopen failed: library “amalgam-swig” not found’.
04-29 13:15:11.864 D/Mono (29648): DllImport error loading library ‘./libamalgam-swig’: ‘dlopen failed: library “./libamalgam-swig” not found’.
04-29 13:15:12.134 D/Mono (29648): DllImport error loading library ‘./libamalgam-swig.so’: ‘dlopen failed: cannot locate symbol “__emutls_get_address” referenced by “/data/app/com.onespatial.Editor.MobileEditor-1/lib/arm/libxercesc.so”…’.
04-29 13:15:12.134 D/Mono (29648): DllImport error loading library ‘/system/lib/libamalgam-swig’: ‘dlopen failed: library “/system/lib/libamalgam-swig” not found’.
04-29 13:15:12.135 D/Mono (29648): DllImport error loading library ‘/system/lib/libamalgam-swig.so’: ‘dlopen failed: library “/system/lib/libamalgam-swig.so” not found’.
04-29 13:15:12.136 D/Mono (29648): DllImport error loading library ‘libamalgam-swig’: ‘dlopen failed: library “libamalgam-swig” not found’.
04-29 13:15:12.672 D/Mono (29648): DllImport error loading library ‘libamalgam-swig.so’: ‘dlopen failed: cannot locate symbol “__emutls_get_address” referenced by “/data/app/com.onespatial.Editor.MobileEditor-1/lib/arm/libxercesc.so”…’.
04-29 13:15:12.673 D/Mono (29648): DllImport error loading library ‘libamalgam-swig’: ‘dlopen failed: library “libamalgam-swig” not found’.
04-29 13:15:12.673 W/Mono (29648): DllImport unable to load library ‘dlopen failed: library “libamalgam-swig” not found’.
Unhandled Exception:

Posts

  • batmacibatmaci DEMember ✭✭✭✭✭

    There are so many cases Vs2019 fails and 2017 works just fine and Microsoft released 2019 as a complete product. we are literally doing RC testing on a full version :neutral:

  • William.4025William.4025 USMember ✭✭

    I am afraid so :disappointed:

  • William.4025William.4025 USMember ✭✭

    Finally works with 19 preview 3

Sign In or Register to comment.