Using ActionBarSherlock with IntelliJ IDEA

 

“Usage” section of ActionBarSherlock only give you how to configure it with Eclipse. It is a little bit different for IntelliJ IDEA.

  • Download ActionBarSherlock zip file and extract it next to your application module which will make use of ActionBarSherlock.
  • Select File->Import Module from IntelliJ IDEASelect library folder under ActionBarSherlock folder and import it as a new module. It will be imported as an Android library module.

  • Open module settings of ActionBarSherlock library module and export android-support-v4.jar dependency
  • Open module settings of your application which will make use of ActionBarSherlock and add a new Module Dependency

  • Select ActionBarSherlock from the list of modules

 

PS:Some tutorials on the internet directs you to add android-support-v4.jar to your application’s libs folder and add as a library dependency. Since ActionBarSherlock already includes it you do not have to do it, just export it from ActionBarSherlock. If you also add android-support-v4.jar as a library to your own module you may get UNXPECTED TOP LEVEL EXCEPTION.

4 thoughts on “Using ActionBarSherlock with IntelliJ IDEA

  • It’s slightly changed now. Instead of a library folder there is instead a folder called actionbarsherlock that you need to import as a module. In addition to the steps above you have to delete the test folder in order for it to compile.

Leave a Reply

Your email address will not be published. Required fields are marked *