Android Gradle Add local jar libs and compiled *.so libs in project. Android Gradle добавление локальных *jar библиотек и скомпилированных *.so библиотек

Android Gradle Add local jar libs and compiled *.so libs in project. Android Gradle добавление локальных *jar библиотек и скомпилированных *.so библиотек

To add local jar lib, need add next to dependencies section:

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('libs/your_lib.jar')
}

 

To add compiled *so files, put all compiled libraries to libs directory and add next lines to gradle file:

android {
...
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
...
}

 

1 thought on “Android Gradle Add local jar libs and compiled *.so libs in project. Android Gradle добавление локальных *jar библиотек и скомпилированных *.so библиотек

Leave a Reply

Please disable your adblocker or whitelist this site!