android studio jni路径配置

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "org.videolan.vlc"
        minSdkVersion 17
        targetSdkVersion 23
        ndk {
            moduleName "libvlcjni"
            abiFilter("armeabi-v7a")  //重点是这句,
        }
    }
    sourceSets {
        main {
            jniLibs.srcDirs = ["libs"]
            jni.srcDirs = []
        }
    }


有的时候也用这个:

 jniLibs.srcDir 'src/main/libs'

你可能感兴趣的:(android开发)