Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Bounty 0.01 btc. Android demo app bug #51

Description

@UkolovaOlga

Originally reported by @Jasonvdb here #47

Steps to reproduce:

  • Used these instructions to build the artifacts on ubuntu using docker.
  • 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.

Attempts to fix the bug
#48

Contribution terms

  1. Anyone can take over this task, fix it, test it and create a PR.
  2. The PR should be assigned to @dr-orlovsky for review.
  3. After the PR is approved and merged, you'll get a bounty of 0.01btc!

For more details feel free to reach out to @UkolovaOlga on telegram (@dr_ukolova) or drop a message in IRC channel (#lnp-bp @freenode).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bountyBounty is established for solving this issuebugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions