-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error:Execution failed for task ':gaanaV5_Working:compileDebugJavaWithJavac'. > java.lang.NoSuchMethodError: com.google.common.collect.FluentIterable.join(Lcom/google/common/base/Joiner;)Ljava/lang/String; #2064
Comments
#2059 might be helpful |
I am not able to find which existing library has the same module guava which is conflicting with glide guava annotation processor |
Can you build with |
Try command line |
Hey i solved it finally by adding this and then adding the guava dependency so it removed the jar and used the new one thanks for the help |
Just adding guava 20.0 annotationProcessor dependency solved it for me:
|
Good day. I have reproduced this issue with a bare-bones test project (all I did was create a new project, add Glide + google API client library to build.gradle, and add a GlideAppModule class). Guava-related solutions from @pallavgrover and @jgrife did not work for me. Please see build.gradle and build stack trace below. I am using Android Studio 2.3.3. build.gradle file apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.test.glidetest"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.github.bumptech.glide:glide:4.0.0'
compile 'com.android.support:support-v4:26.0.0-alpha1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'
//build works if this dependency is commented out
compile('com.google.api-client:google-api-client-android:1.22.0') {
exclude module: 'httpclient'
}
} Gradle build stack trace
|
Glide Version:4.0.0-RC1
Integration libraries:
Device/Android Version:
Issue details / Repro steps / Use case background: trying to integrate the latest glide with AppGlideModule but it is getting conflicted with some guava version in google play services getting this error while building the code. Issue is with annotation processor. Attaching log and dependecies added in my gradle.
Stack trace / LogCat:
The text was updated successfully, but these errors were encountered: