Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install ActionBarSherlock 4.4 in Android Studio

I need help installing/implementing ActionBarSherlock 4.4.0 into Android Studio 0.2.3. I have tried multiple tutorials and looked through answers on here. But none have worked for this beginner.

Has anyone tried to install ABS 4.4.0 into Android Studio yet? Can anyone give me detailed step by step instructions on how to do this? Or point me to an answer or tutorial that will help?

like image 607
user2651024 Avatar asked Dec 29 '25 17:12

user2651024


1 Answers

I successfully added it as aar dependency, no need to download and compile any sources.

  1. Open Tools -> Android -> SDK Manager and install latest platform and build tools 18.0.1.

  2. Create new project with Android Studio for Android 2.1 (API level 7) and replace build.gradle of subproject (not the top one) with the one below.

Complete minimal build.gradle, it needs Android Build Tools version 18:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.5.+'
    }
}

apply plugin: 'android'

repositories {
    mavenCentral()
}

android {
    compileSdkVersion 18
    buildToolsVersion "18.0.1"

    defaultConfig {
        minSdkVersion 7
        targetSdkVersion 18
    }
}

dependencies {
    compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
}
like image 177
Grzegorz Żur Avatar answered Jan 01 '26 07:01

Grzegorz Żur



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!