IntelliJ 12 + ActionBarSherlock setttings: Could not find class ''

There are numerous Q&A about IntelliJ 12 + ABS(ActionBarSherlock) settings.

similar case to this question but shows different errors.

  • Fragment PopBackStack
  • Decoding bitmaps in Android with the right size
  • android classcastexception on activity startup
  • 'R cannot be resolved to a variable' - gen folder is empty
  • Android MediaPlayer - Sometimes No Video is Played Even Though Audio Plays
  • Packaging Android resource files within a distributable Jar file
  • Overall compilation and runnings are OK but only Activity using Tab Navigation(SherlockActivity implements ActionBar.TabListener) gives following error and crash.
    Note that I can use general SherlockActivity shows well.

    “Could not find class ‘’, referenced from method$TabWrapper.onTabReselected” on every overriden methods (onTabUnselected, onTabSelected, onTabReselected).

    It seems like android-support-v4 is not sucessfully referenced but hard to find with check/uncheck trial-and-errors.

    My IntelliJ project settings are as below.

    1. Library is a name of ABS library folder.
    library settings

    2. My project settings.
    my settings

    I set both android-support-v4 to provided.
    What can I do more?

    Some answers said to remove android-support-v4 to my own project but it shows reference errors on import because implements ActionBar.TabListener requires it.

    Related posts:

    How to find View from string instead of
    stringByEvaluatingJavascriptFromString (iOS method, what is Android equivalent?)
    AdMob: Missing required XML attribute adUnitID
    How to use hardware accelerated video decoding on Android?
    Is it possible to use front and back Camera at same time in Android
    When to close Cursor used in SimpleCursorAdapter
  • Android: Impossible to obtain RAW image data from camera?
  • Possible to change where Android Virtual Devices are saved?
  • Toggling check boxes in MultiChoice AlertDialog in android
  • GPUimage port for android
  • Android XML Percent Symbol
  • Need to handle uncaught exception and send log file
  • 4 Solutions collect form web for “IntelliJ 12 + ActionBarSherlock setttings: Could not find class ''”

    This configuration is not correct, the scope of the android-support-v4 library must be set to Compile as it’s not present on Android and must be included in your application.

    Second copy of android-support-v4 must be removed from the application dependencies, it will be available to your application via a library module that has Export option enabled for android-support-v4.

    I also had this problem in Android Studio (Version 1.1.0) when I wanted to check/test the “EffectiveNavigation”-App from the google examples (Link:

    What I had to do was to add this code snippet at the path “.\EffectivNavigation\app\builde.gradle”:

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile ''

    So the whole build.gradle looks like this:

    apply plugin: ''
    android {
        compileSdkVersion 21
        buildToolsVersion "21.1.2"
        defaultConfig {
            applicationId ""
            minSdkVersion 14
            targetSdkVersion 14
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile ''

    You can also use

    compile ''

    instead of

    compile ''

    Maybe this answer is more helpfull for you than the other answers.

    I added adt/sdk/extras/android/support/v4/android-support-v4.jar (adt should point to the android sdk) to the classpath of the Android SDK in Idea.

    Just for the record – this solved the problem for me: (via )

    Build > Rebuild Project.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.