![]() ![]() Makefile Android.mk: LOCAL_PATH:= $(call my-dir) Referring to the NDK sample two-libs, quickly create libtwolib-first.a with ndk-build. ![]() Write JNI code and create a shared library *.so in Android Studio with the static library.Create a static library *.a with command line tool.How to automatically build native code into. And then copy *.so files into the folder:Īfter building the module, you can open build/outputs/aar/*.aar to verify **jni/ /*.so**. The simplest way to add so files into an aar file is to create a folder jniLibs under src/main. How to create a basic aar file?Ĭlick File > New > New Module and select Android Library:Ĭomparing adle files, you will see the main difference is that the plugin name for aar is “ ”, whereas the plugin name for application is “ ”. ![]() I prefer providing aar files for distribution since aar file is a simple zip file which includes so files, jar files, and other resources. When making third party libraries and SDKs for Android development, you could build so files, jar files, or aar files. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |