You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copied artifacts/android/library-debug.aar into demo/android/app/libs/
Open /demo/android in Android Studio and build project
Error message
E/DemoApp: Error loading 'rgb' library: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt12length_errorD1Ev" referenced by "/data/app/~~LN6GpR4dsQOH6xN0_cqfNA==/org.lnpbp.demoapp-1eB-I4WLe5-ims5tw7RtTA==/lib/x86/librgb.so"...
E/g.lnpbp.demoap: No implementation found for long org.lnpbp.rgb_autogen.rgbJNI.rgb_node_run(java.lang.String, java.lang.String, java.lang.String, short) (tried Java_org_lnpbp_rgb_1autogen_rgbJNI_rgb_1node_1run and Java_org_lnpbp_rgb_1autogen_rgbJNI_rgb_1node_1run__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2S)
Possible cause of the bug libc++_shared is not part of the APK, while present in the aar produced from bindings.
With static lib it can't find a function from libc++_shared. The library is included into the .aar file, so DemoApp gradle due to some reason does not include it into the resulting apk.
Originally reported by @Jasonvdb here #47
Steps to reproduce:
artifacts/android/library-debug.aarintodemo/android/app/libs//demo/androidin Android Studio and build projectError message
Possible cause of the bug
libc++_sharedis not part of the APK, while present in theaarproduced from bindings.With static lib it can't find a function from
libc++_shared. The library is included into the.aarfile, so DemoApp gradle due to some reason does not include it into the resulting apk.Attempts to fix the bug
#48
Contribution terms
For more details feel free to reach out to @UkolovaOlga on telegram (@dr_ukolova) or drop a message in IRC channel (#lnp-bp @freenode).