如何为android studio调整actionbarsherlock

时间:2013-08-29 04:48:23

标签: android actionbarsherlock gradle android-studio

尝试使用actionbarsherlock时遇到错误

Could not find com.squareup:fest-android:1.0.5.

在android studio中配置ABS时使用了this

更新:

编译时

我收到以下错误消息:

Gradle: Execution failed for task ':libraries:ActionBarSherlock:actionbarsherlock:compileReleaseAidl'.
> tried to access class com.android.build.gradle.internal.tasks.DependencyBasedCompileTask$DepFileProcessor from class com.android.build.gradle.internal.tasks.DependencyBasedCompileTask

更新: ActionBarSherlock / actionbarsherlock的BuildGradle文件:

buildscript {
    repositories {
        maven { url 'http://repo1.maven.org/maven2' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.5.+'
    }
}

apply plugin: 'android-library'

dependencies {
    compile 'com.android.support:support-v4:13.0.+'
}

android {
    compileSdkVersion 17
    buildToolsVersion '17.0.0'

    defaultConfig {
        minSdkVersion 7
        targetSdkVersion 16
    }

  sourceSets {
    main {
        manifest.srcFile 'AndroidManifest.xml'
        java.srcDirs = ['src']
        resources.srcDirs = ['src']
        aidl.srcDirs = ['src']
        renderscript.srcDirs = ['src']
        res.srcDirs = ['res']
        assets.srcDirs = ['assets']
    }
      instrumentTest.setRoot('tests')
  }
}

0 个答案:

没有答案