Closed takaya-imai closed 2 years ago
We currently don't distribute android libraries via Maven, you have to use the AAR. We probably should eventually, but that's #92. Closing as dup.
Oh, okay. Thanks.
I download the following AAR from github to use on Android studio. However, the same error as the issue above is occurred at https://github.com/lightningdevkit/ldk-garbagecollected/blob/main/src/main/java/org/ldk/impl/bindings.java#L33 .
It seems that the error relates to LD_LIBRARY_PATH but the top-level directory of this repository ? https://github.com/lightningdevkit/ldk-garbagecollected/blob/main/README.md?plain=1#L13
I set LD_LIBRARY_PATH as follows for trial but the error message is not changed. How do you use AAR to work well?
$ cd
$ git clone https://github.com/lightningdevkit/ldk-garbagecollected.git
$ cd ldk-garbagecollected/
$ pwd
/Users/xxx/ldk-garbagecollected
$ export LD_LIBRARY_PATH=/Users/xxx/ldk-garbagecollected
$ echo $LD_LIBRARY_PATH
/Users/xxx/ldk-garbagecollected
LD_LIBRARY_PATH
isn't going to impact the simulator, so that shouldn't change anything. Can you paste the error you get when using the aar, as well as additional logcat context a few lines up (or is it exactly the same as the above?). What platform are you running for the simulator? To keep the AAR size within reason we currently don't include binaries for x86, only x86-64.
I got an error message when launching a simple android app with ldk-java from MavenCentral repository. Do I need to put liblightningjni.so by hand?
Codes about ldk are very simple, it just calls Logger in org.ldk.structs. Building the app and installing to an emulator device are successful but launching is failed.
Enviroment
Error message
File Diff from activity base
Code Files I changed from activity base