天天看点

Android Studio:正确引入so文件的方法

方法一:

将libs文件夹下的so文件,通过gradle配置任务编译成jar文件。

参考资料:http://blog.csdn.net/wulianghuan/article/details/44567001

方法二:

通过插件将so文件依赖到jniLibs文件夹。

参考资料:http://www.jcodecraeer.com/a/anzhuokaifa/Android_Studio/2015/0804/3256.html

插件/开源项目 :https://github.com/nhachicha/android-native-dependencies

方法三:

最佳方法。

继续阅读