V
V
vitalik_19842017-03-26 08:32:12
Android
vitalik_1984, 2017-03-26 08:32:12

How to connect a native .so library in Android Studio?

Good afternoon, I am writing here because I have already rummaged through a bunch of literature about connecting native libraries in the form of .so files and I can’t figure out what needs to be done to bind to the project.
Initial conditions:
there is some project in the form of four .java files and five library files libavcodec.so and four more .so files.
From all my thoughts, it turns out that in order to connect functions from the library, you need to know which functions will be used. But I have no idea what to look for. I just found the entire library can be connected using the -l switch.
I'm a beginner, tell me how to connect and use library functions in java code using gradle and Android Studio.
Thanks in advance. Later I will give an example code.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question