Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't find "libjniContext.so" #1372

Closed
ulohani90 opened this issue Jan 21, 2020 · 2 comments
Closed

Couldn't find "libjniContext.so" #1372

ulohani90 opened this issue Jan 21, 2020 · 2 comments

Comments

@ulohani90
Copy link

Frame frame = new Frame(screenWidth, screenHeight, Frame.DEPTH_UBYTE, 2);

The above line gives the following exception

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.android/com.test.android.ui.activities.ScreenRecordingActivityNew}: java.lang.RuntimeException: No native JavaCPP library in memory. (Has Loader.load() been called?)

On Adding
Loader.load();
before instantiating frame object, I get the below mentioned exception.

Process: com.test.android, PID: 26610 java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.test.android-1/base.apk"],nativeLibraryDirectories=[/data/app/com.test.android-1/lib/arm64, /data/app/com.test.android-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] couldn't find "libjniContext.so" at java.lang.Runtime.loadLibrary0(Runtime.java:984) at java.lang.System.loadLibrary(System.java:1562) at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1543) at org.bytedeco.javacpp.Loader.load(Loader.java:1192) at org.bytedeco.javacpp.Loader.load(Loader.java:1042) at com.test.android.ui.activities.ScreenRecordingActivityNew.onCreate(ScreenRecordingActivityNew.java:187) at android.app.Activity.performCreate(Activity.java:6875) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2659) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2767) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1514) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6221) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)

I have used the following implementation in build.gradle
implementation(group: 'org.bytedeco', name: 'javacv-platform', version: '1.5.2')

Am I missing something over here or is there any issue with the library?

@saudet
Copy link
Member

saudet commented Jan 21, 2020

That's a known limitation. See issue #1305 for more details.

@saudet
Copy link
Member

saudet commented Jan 21, 2020

Duplicate of #1305

@saudet saudet marked this as a duplicate of #1305 Jan 21, 2020
@saudet saudet closed this as completed Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants