Tixeon
Tixeon

Reputation: 930

Google play services version conflict in app with third-party library

I used third party library (.jar) which has dependencies on play-services:6.5.87 and my main app module use play-services-gcm:8.3.0 which is latest version. Both upgrading to 8.+ from 6.+ and downgrading from 8.+ to 6.+ doesn't work and have build error.

Please do comment if you find my question confused, i will try provide detail explanation as much as i can . Thanks

Upvotes: 1

Views: 995

Answers (2)

Tixeon
Tixeon

Reputation: 930

After couples hours of googling , i figured out to run successfully. Google has made update on google-play-services api in 8.+ and remove some of the impl which they once had in 6.+ but 7.+ don't. See here for play service api release notes . Since third party library use google location service.My app has depend on new impl of GCM ( 8.+) . Changing version to 7.8.0 esp solve my issue .

Things learned here is if you don't neccessary have to depend on third party which use seperate google-play-service, don't waste time on that. Otherwise use alternative library. Beacause the only way you solve this prob is , ask library supporter to build (.aar) version with latest google-play-servies. If not you may fall into the same issue I did.

Hopt it helps

Upvotes: 2

Prathap Badavath
Prathap Badavath

Reputation: 1671

check your build.gradle file and android build version.

compile 'com.google.android.gms:play-services:8.1.0'//updated version you can put and check android build version you installed.

compile 'com.google.android.gms:play-services-gcm:8.1.0'//updated version you can put. or

go file->project structure-> dependency tab -> add Library dependency(available google play services)

Upvotes: 1

Related Questions