How can I add .so files to an android library project using gradle 0.7+

后端 未结 4 773
别跟我提以往
别跟我提以往 2020-11-30 02:24

Project structure:

App project --> depends on Library project

Library Project has a folder for the compiled jni libs

jniLibs.srcDirs = [\'li         


        
4条回答
  •  有刺的猬
    2020-11-30 03:03

    I'm working with Android Studio 2.1, and I found that adding the sources or sourceSets entry to my build.gradle had no apparent effect. Instead I found that I needed the following:

    android {
        defaultConfig {
            ndk {
                moduleName "libmp3lame"
            }
        }
    

提交回复
热议问题