Answer the question
In order to leave comments, you need to log in
How to connect guava in android studio?
Can't include guava library in Android Studio. Listing build.gradle :
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.8.+'
}
}
allprojects {
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '15.0'
}
}
A problem occurred evaluating root project 'Test'.
> No signature of method: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.compile() is applicable for argument types: (java.util.LinkedHashMap) values:
Possible solutions: module(java.lang.Object)
Answer the question
In order to leave comments, you need to log in
I don’t know if the path is right, but it just happened like this: I downloaded the .jar file from here search.maven.org/#artifactdetails%7Ccom.google.gua... then threw it into the libs folder, then right-clicked on this .jar and add library
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question