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

Native code is conflicts with JavaCV. #1480

Open
xiaos opened this issue Aug 3, 2020 · 7 comments
Open

Native code is conflicts with JavaCV. #1480

xiaos opened this issue Aug 3, 2020 · 7 comments

Comments

@xiaos
Copy link

xiaos commented Aug 3, 2020

I have some native code in Android, also using the ffmpeg so files, but when run the app, i found I got the below errors from javaCV, any idea? Thanks.

java_vm_ext.cc:542] JNI DETECTED ERROR IN APPLICATION: mid == null
java_vm_ext.cc:542] in call to CallVoidMethodA
from void org.bytedeco.javacpp.PointerPointer.allocateArray(long)

@saudet
Copy link
Member

saudet commented Aug 3, 2020

Sounds like a duplicate of issue #1305. Make sure your APK contains libjnijavacpp.so.

@xiaos
Copy link
Author

xiaos commented Aug 3, 2020

Thanks. where can i find libjnijavacpp.so, i mean how to build the javacpp.so.

also if i remove my native code, then no issue, do you know why?

@saudet
Copy link
Member

saudet commented Aug 3, 2020 via email

@xiaos
Copy link
Author

xiaos commented Aug 3, 2020

hmm i just added javacpp.so, still not working

@xiaos
Copy link
Author

xiaos commented Aug 3, 2020

After add the so file, i got another error:
Version of org.bytedeco:ffmpeg could not be found.

@saudet
Copy link
Member

saudet commented Aug 3, 2020 via email

@saudet
Copy link
Member

saudet commented Aug 28, 2020

Did you make sure to include binaries of all the libraries for all architectures?

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