question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

libreactnativejni.so is missing when adding the live package

See original GitHub issue

Version

No response

Problem Area

react-native-pytorch-core (core package)

Steps to Reproduce

  1. Test it on Android
  2. Do all the steps from here https://pytorch.org/live/docs/tutorials/add-package/
  3. Use the Android Studio, run clean build, rebuild, and run
  4. You will see the following Errors

Related: https://stackoverflow.com/questions/44485941/lib-so-missing-and-no-known-rule-to-make-it

Expected Results

  1. Build command failed. Error while executing process D:\ADK\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C D:\XXXXXXXXXXX\Main\Project\Project\XXXXXXX\src\mobile\node_modules\react-native-pytorch-core\android.cxx\cmake\debug\armeabi-v7a torchlive} ninja: Entering directory `D:\XXXXXXXXXXX\Project\Project\XXXXXXX\src\mobile\node_modules\react-native-pytorch-core\android.cxx\cmake\debug\armeabi-v7a’

ninja: error: ‘…/…/…/…/build/react-native-0.64.3.aar/jni/armeabi-v7a/libreactnativejni.so’, needed by ‘…/…/…/…/build/intermediates/cmake/debug/obj/armeabi-v7a/libtorchlive.so’, missing and no known rule to make it

  1. If you run the cmake on clion, you will see this warning. I am not sure it is the reason.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: FBJNI_LIBRARY linked by target “torchlive” in directory /cygdrive/d/XXXXXXXXXXX Main/Project/Project/XXXXXXX/src/mobile/node_modules/react-native-pytorch-core/android PYTORCH_LIBRARY linked by target “torchlive” in directory /cygdrive/d/XXXXXXXXXXX Main/Project/Project/XXXXXXX/src/mobile/node_modules/react-native-pytorch-core/android REACT_NATIVE_JNI_LIB linked by target “torchlive” in directory /cygdrive/d/XXXXXXXXXXX Main/Project/Project/XXXXXXX/src/mobile/node_modules/react-native-pytorch-core/android REACT_NATIVE_UTILS_LIB linked by target “torchlive” in directory /cygdrive/d/XXXXXXXXXXX Main/Project/Project/XXXXXXX/src/mobile/node_modules/react-native-pytorch-core/android

Code example, screenshot, or link to repository

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Gerniicommented, Apr 30, 2022

@JonathanSum u need to up or downgrade your react native to v0.65.1, I have tested all version, and only v0.65.1 work

1reaction
JonathanSumcommented, Jul 14, 2022

@raedle I will try to add it to my project with my OnePlus7 later to see if this unblocks me or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

libreactnativejni.so is missing when adding the live package
This issue has been created since 2022-04-14. Version. No response. Problem Area. react-native-pytorch-core (core package). Steps to Reproduce.
Read more >
[Crash in some Android devices] couldn't find DSO to ... - GitHub
Issue Recently some crashes reported in certain Android devices at firebase crashlytics. Project Files Javascript Click To Expand ...
Read more >
Android ReactNative java.lang.UnsatisfiedLinkError:could find ...
It might be lib\x86_64\libreactnativejni.so not found due to missing strip tool for ABI 'X86_64' Try the following steps. Uninstall the apk.
Read more >
Automated Malware Analysis Report for Starbucks El ... - Joe Sandbox
Has functionalty to add an overlay to… Has permission to draw over other a ... have missing dynamic data code. ... libreactnativejni.so.
Read more >
Free Automated Malware Analysis Service - powered by Falcon ...
APK) Android Package; 18.3% (. ... lds|lease|leclerc|legal|lexus|lgbt|liaison|lidl|life|lifestyle|lighting|limited|limo|linde|link|live|lixil|loan|loans|lol ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found