私はこれに数日/数週間行き詰まっています。actionbarsherlock の aar を含めようとしていますが、このエラーが発生し続けます。
Failed to notify project evaluation listener.
Could not resolve all dependencies for configuration ':_DebugCompile'.
Could not find com.actionbarsherlock:actionbarsherlock:4.4.0.
Required by:
:directory_name:unspecified
Android Studio で起動した通常のアプリケーションでこれを実行しましたが、正常に動作します。私のプロジェクトは、Eclipseからエクスポートされたものです(もちろんgradleを使用)。Mavenリポジトリを調べていないように感じます。これを修正する設定が必要です。どんな助けでも大歓迎です!!
build.xml:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android'
dependencies {
//compile 'com.google.android.gms:play-services:3.1.+'
compile 'com.android.support:support-v4:18.0.+'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
}
android {
compileSdkVersion 18
buildToolsVersion "17.0.0"
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
}