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

Actually fixed android integration #11

Merged
merged 1 commit into from
Oct 26, 2020

Conversation

zoedberg
Copy link
Contributor

On #6 I've removed a cp that I was convinced it was overriding the final library. I was wrong, probably messed up stuff during builds. The librgb.so is necessary, otherwise, when loading the library in the android app, this error is received:

I/RGB_NODE: loading library
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.react_native_demo, PID: 28170
    java.lang.UnsatisfiedLinkError: dlopen failed: library "librgb.so" not found
        at java.lang.Runtime.loadLibrary0(Runtime.java:1016)
        at java.lang.System.loadLibrary(System.java:1669)
        at com.react_native_demo.MainApplication.onCreate(MainApplication.java:57)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5871)
        at android.app.ActivityThread.access$1100(ActivityThread.java:199)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

contents of the (working) library:

unzip -l library/build/outputs/aar/library-debug.aar
Archive:  library/build/outputs/aar/library-debug.aar
  Length      Date    Time    Name
---------  ---------- -----   ----
    88185  1980-02-01 00:00   R.txt
      303  1980-02-01 00:00   AndroidManifest.xml
    12871  1980-02-01 00:00   classes.jar
        0  1980-02-01 00:00   jni/
        0  1980-02-01 00:00   jni/arm64-v8a/
   936368  1980-02-01 00:00   jni/arm64-v8a/libc++_shared.so
 20402312  1980-02-01 00:00   jni/arm64-v8a/librgb.so
    14168  1980-02-01 00:00   jni/arm64-v8a/librgb_node.so
        0  1980-02-01 00:00   jni/armeabi-v7a/
   558988  1980-02-01 00:00   jni/armeabi-v7a/libc++_shared.so
 12303312  1980-02-01 00:00   jni/armeabi-v7a/librgb.so
    22132  1980-02-01 00:00   jni/armeabi-v7a/librgb_node.so
        0  1980-02-01 00:00   jni/x86/
   939924  1980-02-01 00:00   jni/x86/libc++_shared.so
 28597208  1980-02-01 00:00   jni/x86/librgb.so
    13832  1980-02-01 00:00   jni/x86/librgb_node.so
        0  1980-02-01 00:00   jni/x86_64/
  1002168  1980-02-01 00:00   jni/x86_64/libc++_shared.so
 26800496  1980-02-01 00:00   jni/x86_64/librgb.so
    14440  1980-02-01 00:00   jni/x86_64/librgb_node.so
        0  1980-02-01 00:00   arm64-v8a/
        0  1980-02-01 00:00   armeabi-v7a/
        0  1980-02-01 00:00   x86/
        0  1980-02-01 00:00   x86_64/
---------                     -------
 91706707                     24 files

@dr-orlovsky dr-orlovsky added the bug Something isn't working label Oct 26, 2020
@dr-orlovsky dr-orlovsky added this to the v0.1 milestone Oct 26, 2020
@dr-orlovsky dr-orlovsky linked an issue Oct 26, 2020 that may be closed by this pull request
@dr-orlovsky dr-orlovsky merged commit 4e8ec34 into RGB-WG:master Oct 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Android integration
2 participants