I have an Android project that loads a custom .so lib. I'm having trouble w/ IntelliJ IDEA to include this .so as part of the build.
Does anyone know where to config the project settings to include this .so file?
Thanks
UPDATE: Found it!
In Project Structure -> Modules -> Android -> Native libs directory.
My project is referring to a .so from another project, that's why the path needs to be updated here to find the .so file
From the main menu, select File | Project Structure | Project Settings | Modules. Select the module for which you want to add a library and click Dependencies. button and select Library. In the dialog that opens, select a project or a global library that you want to add to the module.
On the right panel, select the little + Symbol (below "Name" and above "Classes") Select the directory you want to specify as Native Library Location and confirm. Select Native Library Location in the next dialog.
From the main menu, select File | Project Structure Ctrl+Alt+Shift+S and click Modules. Select the necessary module and open the Sources tab. to the right of the necessary folder (folder path). Specify the path relative to the output folder root, and click OK.
Solution:
In Project Structure -> Modules -> Android -> Native libs directory.
My project is referring to a .so from another project, that's why the path needs to be updated here to find the .so file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With