1.JniLibs文件夹新建
在android studio中,res同级目录新建jinLibs.
在到module的build.gradle中android标签下添加文件的指向.
android {
compileSdkVersion23
buildToolsVersion"23.0.1"
sourceSets {
main {
manifest.srcFile'AndroidManifest.xml'
java.srcDirs= ['src']
resources.srcDirs= ['src']
aidl.srcDirs= ['src']
renderscript.srcDirs= ['src']
res.srcDirs= ['res']
assets.srcDirs= ['assets']
jniLibs.srcDirs= ['jniLibs']
}
}