Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can add this part to your build.gradle script</p> <pre><code>dependencies { compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' } </code></pre> <p>EDIT: If you are using also the support library you can use it:</p> <pre><code>dependencies { compile 'com.android.support:support-v4:19.0.0' compile ('com.actionbarsherlock:actionbarsherlock:4.4.0@aar'){ // Need to specifically exclude this as it is specified in ActionBarSherlock pom exclude group: 'com.google.android', module: 'support-v4' } } </code></pre> <p>EDIT2: If you would like to work with abs with a local copy ( I suggest you to use the maven dependency ) you can do this:</p> <pre><code>-root -lib -abs build.gradle src res -myModule build.gradle settings.gradle </code></pre> <p>In settings.gradle:</p> <pre><code>include ':myModule', ':lib:abs' </code></pre> <p>In lib/abs/build.gradle:</p> <pre><code>buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.7.+' } } apply plugin: 'android-library' android { compileSdkVersion 19 buildToolsVersion "19.0.0" defaultConfig { minSdkVersion XX targetSdkVersion 19 } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] res.srcDirs = ['res'] } } } } dependencies { compile 'com.android.support:support-v4:19.0.0' } </code></pre> <p>Remove the supportV4.jar from your local abs library. </p> <p>In myModule/build.gradle you should add:</p> <pre><code>buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.7.+' } } apply plugin: 'android' android { compileSdkVersion 19 buildToolsVersion "19.0.0" defaultConfig { minSdkVersion XX targetSdkVersion 19 } } dependencies { // Libraries compile project(':lib:abs') } </code></pre> <p>If in myModule/build.gradle you need to use the support library, you should add:</p> <pre><code>dependencies { compile 'com.android.support:support-v4:19.0.0' // Libraries compile project(':lib:abs') } </code></pre> <p><strong>Working with gradle you should prefer to use dependencies in Maven.</strong> However you can use local libraries with this structure above, editing your gradle files.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload