-
Notifications
You must be signed in to change notification settings - Fork 15
Android demo compile issues #47
Comments
The crash seems to be another naming-related issue. Will try to fix |
Ok, this is not the naming issue. It just can't find the library in runtime, i.e. it is not copied as a part of APK: |
Working on replicating all the steps. BTW, you get this error on device or in simulator? And are you using Java or already React Native? |
Have managed to get the same error on a device and simulator. For this error I'm using the Java Android demo in this repo. I do have a react-native wrapper that is working for iOS so far. If I can get this demo working then it should be simple enough to fix for react-native as well. |
... considering of renaming |
I thought maybe just changing this line
I can't see where else to fix the name, there's nothing in the gradle file it seems. |
Ok, figured out the reason of the second error. Now actually it finds the library, however swig (after update?) generates incorrect binding linking |
Spent a day investigating & trying to fix. No success so far; however what I have found out:
|
Ok, this seems to be an Android NDK issue: android/ndk#833 Strange we had not it before. Will try to fix by switching to c++_static library. |
Other links relevant in the context:
|
ReLink does not help; the error persists. With static lib now it can't find a function from I.e. the reason of the error is that |
Agenda: 1. Dev Updates: - Updates on related projects: rust-bitcoin & rust-miniscript - Updates on refactoring LNP/BP Core Lib and info on new crates (wallet descriptors, RGB Core, LNP Core, Internet2) - Moving repositories into project-specific github orgs (RGB-org, Internet2-org) - v0.3.0 release of LNP/BP Core Lib, RGB Core Lib & RGB Node - New developments with LNP Core & BOLT-7 by @raj - Proposed architecture for mobile wallets using RGB+LNP Node - RGB/LN invoicing protocol: aspects related to mobile payment 2. Pending issues to discuss: LNP-BP/LNPBPs#83 RGB-WG/rgb-sdk#47 #33 Presentation slides are here https://github.com/LNP-BP/FAQ/blob/master/Presentation%20slides/LNP:BP%20v0.3%20libraries.pdf YouTube videos are uploaded to the LNP/BP Standards Association channel https://www.youtube.com/c/LNPBP/
Agenda: 1. Dev Updates: - Updates on related projects: rust-bitcoin & rust-miniscript - Updates on refactoring LNP/BP Core Lib and info on new crates (wallet descriptors, RGB Core, LNP Core, Internet2) - Moving repositories into project-specific github orgs (RGB-org, Internet2-org) - v0.3.0 release of LNP/BP Core Lib, RGB Core Lib & RGB Node - New developments with LNP Core & BOLT-7 by @raj - Proposed architecture for mobile wallets using RGB+LNP Node - RGB/LN invoicing protocol: aspects related to mobile payment 2. Pending issues to discuss: LNP-BP/LNPBPs#83 RGB-WG/rgb-sdk#47 LNP-BP#33 Presentation slides are here https://github.com/LNP-BP/FAQ/blob/master/Presentation%20slides/LNP:BP%20v0.3%20libraries.pdf YouTube videos are uploaded to the LNP/BP Standards Association channel https://www.youtube.com/c/LNPBP/
Hello @dr-orlovsky . I am a volunteer for solving this bug. I just had a discussion with an NDK dev about it here . It seems that one of the problems is a dependency(actually, a set of dependencies), cc, and cmake, that first need to be updated, for better interop with the current version of the NDK(or newer) used in the build script. |
Hi @AnonymousGeekDev! Thank you for proposing volunteering! Right now this demo is outdated and we are preparing compatibility-breaking release of RGB which will require update of the demo and will reduce the number of downstream C dependencies, so the issue may be resolved at that point (but we may have other new issues of course, so we may still need your help then) |
OK @dr-orlovsky thanks for the feedback! I am also interested in building an Android client for MyCitadel, and I have the impression that the future changes will probably be of relevance there :) |
@AnonymousGeekDev we will ship so-called CitadelRuntime Android build as a library that you will be able to use in your wallet on Android |
as @DanAlbert pointed out here, the you can find here the PR solving this issue, making the android library work again and the for future records, here the contents of a working library:
please note that in each ABI directory there are 3 files, the |
Steps to reproduce:
artifacts/android/library-debug.aar
intodemo/android/app/libs/
/demo/android
in Android Studio and build projectBuild error:
I noticed
org.lnpbp.rgbnode.Runtime
does not exist butorg.lnpbp.rgb.Runtime
does so I made these changes and I get the app to build but it then crashes on first open with this run error:The text was updated successfully, but these errors were encountered: