I'm using asne google plus library for my project. It uses older version of google play service.
When I add Google maps with newer version, gradle build fails with this message:
Error:Execution failed for task ':app:processDebugResources'.
Error: more than one library with package name 'com.google.android.gms'
My dependencies in my app.gradle:
compile 'com.github.asne:asne-googleplus:0.3.3'
compile 'com.google.android.gms:play-services-maps:8.3.0'
compile 'com.google.android.gms:play-services-location:8.3.0'
When I make asne like this:
compile ('com.github.asne:asne-googleplus:0.3.3') {
transitive = true
}
This lib becomes invisible and I can't call its methods.
How to resolve this conflict?
-
You cannot have two libraries with different versions work in one project. Try updating the play services library of the one that contains the old library.DevInDisguise– DevInDisguise2015年12月18日 12:58:18 +00:00Commented Dec 18, 2015 at 12:58
2 Answers 2
I suggests that you use the entire dependency
compile 'com.google.android.gms:play-services:8.3.0'
and not split it into parts like play-services-location:8.3.0 and play-services-maps:8.3.0. This link provides a detailed explanation why.
Comments
You could try to just exclude the google dependencies of the library:
compile ('com.github.asne:asne-googleplus:0.3.3') {
exclude group: 'com.google.android.gms'
}
1 Comment
asne method it throws me an exception: java.lang.NoClassDefFoundError: com.github.gorbin.asne.googleplus.GooglePlusSocialNetworkExplore related questions
See similar questions with these tags.