一般來說不需要設定, Android Studio 會自己找到 jniLibs 在哪裡。不過當然還是有辦法設定的。

Ref: JNI and Gradle in Android Studio

sourceSets.main {
        jni.srcDirs = [] // This prevents the auto generation of Android.mk
        jniLibs.srcDir 'src/main/libs' // This is not necessary unless you have precompiled libraries in your project.
    }

Comments

comments powered by Disqus
Copyright © 2013 Andro Chen
Powered by Logdown and Greyshade
Favicon from The Noun Project