0

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?

asked Dec 18, 2015 at 8:43
1
  • 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. Commented Dec 18, 2015 at 12:58

2 Answers 2

0

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.

answered Dec 19, 2015 at 6:19
Sign up to request clarification or add additional context in comments.

Comments

0

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'
}
answered Dec 18, 2015 at 8:48

1 Comment

OK gradle is compiled, but when I try to call asne method it throws me an exception: java.lang.NoClassDefFoundError: com.github.gorbin.asne.googleplus.GooglePlusSocialNetwork

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.