This was something that caused me a headache …
First of all, take a look at this page to get the correct terminology for IntelliJ.
We need to add a module dependency, but first we need to create a module… For this example I will use the excellent ActionBarSherlock library.
1. Have your application project open
2. Choose File -> Import Module
3. Browse to the ActionBarSherlock library, and click OK
4. Choose Create module from existing souces, and Next
5. Next to the end and finish
Now to add this module to your application:
1. Choose File -> Project Structure
2. Choose Modules from the left hand column
3. Select your application from the second column
4. Click the + icon in the third column
5. Choose Module Dependency
6. Choose ActionBarSherlock (or whatever the name of the lib you’re using), and OK
7. I check export, I’m not entirely sure if it’s needed.
You should now be able to use the library.
The post Switching To IntelliJ: Adding a Library Project appeared first on Droid App.