As shown on the library dependencies ./gradlew app:dependencies scan
it shows that com.segment.analytics.android:analytics:4.3.1 is still referencing a really old dependencies on com.google.android.gms.
I think this library really needs to be updated as the Android eco-system has moved on to version 16+ for pre-AndroidX
and version 17+ for AndroidX
Also it is a very bad recommendation to ask users to add a dependency like this
compile 'com.segment.analytics.android.integrations:google-analytics:+'
As google play service library is known to upgrade with breaking changes.
A good example is version 16 vs version 17 where 17 is headed towards the AndroidX and not many people are ready and depends on 16 still.
To solve this dependency issues i had to force gradle to depend on a version that i need for my app. This is not sustainable as it is a tech debt on my end when build fails.
I hope you would accept this feedback and work on updating your dependencies and please keep up to date with the Android/Google Services eco-system.
+--- com.segment.analytics.android.integrations:google-analytics:2.0.3
| +--- com.segment.analytics.android:analytics:4.3.1 (*)
| \--- com.google.android.gms:play-services-analytics:11.4.2
| +--- com.google.android.gms:play-services-analytics-impl:11.4.2
| | +--- com.google.android.gms:play-services-base:11.4.2 -> 16.0.1 (*)
| | +--- com.google.android.gms:play-services-basement:11.4.2 -> 16.1.0 (*)
| | \--- com.google.android.gms:play-services-analytics-impl-license:11.4.2
| +--- com.google.android.gms:play-services-base:11.4.2 -> 16.0.1 (*)
| +--- com.google.android.gms:play-services-basement:11.4.2 -> 16.1.0 (*)
| +--- com.google.android.gms:play-services-tagmanager-v4-impl:11.4.2
| | +--- com.google.android.gms:play-services-analytics-impl:11.4.2 (*)
| | +--- com.google.android.gms:play-services-base:11.4.2 -> 16.0.1 (*)
| | +--- com.google.android.gms:play-services-basement:11.4.2 -> 16.1.0 (*)
| | \--- com.google.android.gms:play-services-tagmanager-v4-impl-license:11.4.2
| \--- com.google.android.gms:play-services-analytics-license:11.4.2
As shown on the library dependencies
./gradlew app:dependenciesscanit shows that com.segment.analytics.android:analytics:4.3.1 is still referencing a really old dependencies on com.google.android.gms.
I think this library really needs to be updated as the Android eco-system has moved on to version 16+ for pre-AndroidX
and version 17+ for AndroidX
Also it is a very bad recommendation to ask users to add a dependency like this
compile 'com.segment.analytics.android.integrations:google-analytics:+'As google play service library is known to upgrade with breaking changes.
A good example is version 16 vs version 17 where 17 is headed towards the AndroidX and not many people are ready and depends on 16 still.
To solve this dependency issues i had to force gradle to depend on a version that i need for my app. This is not sustainable as it is a tech debt on my end when build fails.
I hope you would accept this feedback and work on updating your dependencies and please keep up to date with the Android/Google Services eco-system.