You can exclude the com.google.android.gms group from the aerogear push dependency.

compile('org.jboss.aerogear:aerogear-android-push:2.2.2') {
    exclude group: "com.google.android.gms"
}

On Thu, Feb 18, 2016 at 11:42 AM, Francois <fd@allocab.com> wrote:
Hello,

In the current version of the cordova plugin, google play services v6.1.11
is being used (see gradle dependencies output)

+--- org.jboss.aerogear:aerogear-android-push:2.2.2
|    +--- org.jboss.aerogear:aerogear-android-core:2.1.0
|    +--- org.jboss.aerogear:aerogear-android-pipe:2.1.0 (*)
|    +--- com.google.android.gms:play-services:6.1.11
|    \--- com.google.code.gson:gson:2.2.2

The project I am working on also needs google maps and location services and
both cordova plugins require google play services v8.4.0.

Is there a way to mix both google play versions and successfully compile the
whole project ?

the output of the compile task is as follow:
> Error: more than one library with package name 'com.google.android.gms'

Thanks for your help



--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/Android-how-to-compile-with-latest-version-of-Googe-Play-services-tp513.html
Sent from the aerogear-users mailing list archive at Nabble.com.
_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users