Answer the question
In order to leave comments, you need to log in
How to build android project using NDK? there are .mk files and libraries?
How to build android project using NDK? there are .mk files and libraries?
Answer the question
In order to leave comments, you need to log in
Create jni folder:
app/scr/main/jni
in it put library files and mk files
in androidmanifest add the following
sourceSets.main {
jni.srcDirs = [] // ndk-build.cmd needs to be invoke from cmd
jniLibs.srcDir 'src/main/libs'
}
C:\Program Files (x86)\Java\jdk1.8.0_261
cd C:\Users\user\AndroidStudioProjects\MyApplication5\app\src\main
C:\Users\user\AppData\Local\Android\Sdk\ndk\21.3.6528147\build\ndk-build.cmd
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question