Search code examples
javaandroidandroid-actionbaractionbarsherlockruntime-error

Errors with ActionBarSherlock TabListener class


I'm trying to develop an app which uses Tabs to navigate from one section to another.

But I'm getting errors trying to implement an ActionBarSherlock TabListener class. IntelliJ keeps suggesting that I need to implement the methods into the class, but they're already there. Then when I compile I get another set of errors.

Pastebin link for errors: http://pastebin.com/v00kN5p8

MyActivity.java

http://pastebin.com/SMgMw31h

FragmentFirst.java

http://pastebin.com/AKVMjbY2

FragmentSecond.java

http://pastebin.com/bmKTPa0y


Solution

  • I fixed the issue by completely reinstalling IntelliJ (and resetting all settings) and made sure all the imports were actually coming from the ActionBarSherlock library.

    Also, made sure that the "Export" button was checked in the Project Structure window under the ActionBarSherlock library in modules.

    enter image description here