I tried a couple of different ways but failed. Can you share what the right way is to tell intelliJ to include a jar file in the libs directory?
Thanks
I tried a couple of different ways but failed. Can you share what the right way is to tell intelliJ to include a jar file in the libs directory?
Thanks
In the Project Structure | Modules | Dependencies add the new library and use Jar Directories type of the entry for the lib directory. Now all the jars from the lib directory will be available for the project and will be packaged automatically into the final .apk file.
Unfortunately, Intellij 10.0.2 has a GUI for File/ProjectStructure/Modules/Dependencies with an internal, un-resizeable text box. Thus, buttons for the panel are off screen even if you have (imho!) a normal size computer... (Normal is always relative to oneself!) The only way to find them is to push and pull and prod the window around. Then these instructions all make perfect sense.
I assume you added the libraries on Module Settings >> Modules >> Dependencies.
When you add the library and the Export check box is selected, then the library is packaged with the final deployable. Also make sure that the scope is not "provided" (scope is similar to maven dependency scope).
Let me know if it does not work.. Will be glad to help.