Explain in detail the method of referencing third-party libraries in android.mk
1、 Integrating third-party jar packages:
1. Create the directory LIBS under the project directory (it's OK not to create it, just point to the corresponding path later) and put the third-party jar package in it.
2. Configure in android.mk file:
3. Reference, in local_ STATIC_ JAVA_ Just add smartphotolib to libraries
or
Just.
2、 Integration *. So files:
1. Copy the so file to LIBS.
2. Configure in android.mk file:
3. Reference, add in android.mk
Just.
Compilation will automatically copy the so file to the out / target / product / * * * / obj / lib directory. If there is no copy, you can manually copy it and then compile it or write a script to copy it, as shown below:
3、 Integration *. AAR file
Add a third-party AAR in android.mk of APK, create LIBS / aaa.arr file, and modify android.mk as follows
4、 Dynamically copy so to LIBS
1. Create a new prebuilt folder under the JNI folder and put the so to be copied under the folder. Add the following code to android.mk
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.