I try to embed Otto library, 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'
}
But I get the exception:
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
I tried to refresh dependencies(gradle --refresh-dependencies
) but it doesn't help.