N
N
newdancer2016-07-10 10:09:10
Android
newdancer, 2016-07-10 10:09:10

How to include C-ish library in Android Studio?

How to include C-ish library in Android Studio? There are "c" and "h" files. How can they be connected in Android Studio?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Stolyarov, 2016-07-10
@newdancer

Everything is described here and here
To bring things up to date, I will describe briefly:
You need to connect the Android NDK to the studio, create the jni folder, Android.mk and Application.mk files in the project, and set the paths to the sources in gradle. In C files, you need to export methods that should be called from java

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question