I'm not able to resolve external dependencies using gradle. I've created a brand new project, and edited the gradle.build file to be as follows:--buildscript {repositories {maven { url 'http://repo1.maven.org/maven2' }}dependencies {classpath 'com.android.tools.build:gradle:0.4'}}apply plugin: 'android'dependencies {compile files('libs/android-support-v4.jar')compile 'com.google.guava:guava:11.0.2'}android {compileSdkVersion 17buildToolsVersion "17.0.0"defaultConfig {minSdkVersion 7targetSdkVersion 16}}(the only change from the default: I added compile 'com.google.guava:guava:11.0.2' to dependencies, which is from this example)When I run $ ./gradlew dependencies or ./gradlew build, I get this error:The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.FAILURE: Build failed with an exception.* What went wrong:A problem occurred configuring project ':DepsTest'.> Failed to notify project evaluation listener.> Could not resolve all dependencies for configuration ':DepsTest:compile'.> Could not find com.google.guava:guava:11.0.2.Required by:DepsTest:DepsTest:unspecified* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILEDAm I doing something wrong? Should I file a bug?
You received this message because you are subscribed to the Google Groups "adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
whether it will be added in the next versions of Android studio?
среда, 22 мая 2013 г., 4:24:02 UTC+4 пользователь Xavier Ducrohet написал: