【发布时间】:2013-12-30 15:37:17
【问题描述】:
我尝试嵌入 Otto 库,which exists at the Maven Central。
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.6.3'
}
}
apply plugin: 'android'
dependencies {
compile 'com.google.android.gms:play-services:4.0.30'
compile 'com.android.support:support-v13:19.0.0'
compile 'com.squareup:otto:1.3.4'
}
但我得到了例外:
A problem occurred configuring root project 'sample-project'.
> Failed to notify project evaluation listener.
> Could not resolve all dependencies for configuration ':_DebugCompile'.
> Could not find com.squareup:otto:otto:1.3.4.
Required by:
:sample-project:unspecified
我尝试刷新依赖项(gradle --refresh-dependencies),但没有帮助。
【问题讨论】:
标签: android dependencies repository gradle maven-central