Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create jniLibs folder on Android Studio?

Tags:

android

enter image description here

Hi, I use Android Studio.

I want to create jniLibs folder but my project does not have it.

I know jniLibs is created automatically, isn't it?

Is it a gradle setting?

like image 276
chohyunwook Avatar asked Jul 28 '16 01:07

chohyunwook


People also ask

Where is jni folder in Android Studio?

Right click on the "app" folder and select New->Folder->JNI Folder. This should create a folder under app/src/main called "jni". List your *. c files on LOCAL_SRC_FILES and the name your library on LOCAL_MODULE.

What is jniLibs?

jni/libs folder is where your shared library files are built from the C/C++ sources.


2 Answers

If you don't have the JNI directory in your project, do this:

enter image description here

like image 72
Jorge E. Hernández Avatar answered Oct 17 '22 10:10

Jorge E. Hernández


@lalongoo gave you the right answer, but you can do this without Android Studio :

create a directory named jni under app/src/main (the default location).

like image 3
L. Swifter Avatar answered Oct 17 '22 11:10

L. Swifter