segmentio / analytics-kotlin

The hassle-free way to add Segment analytics to your Kotlin app (Android/JVM).

Repository from Github https://github.comsegmentio/analytics-kotlinRepository from Github https://github.comsegmentio/analytics-kotlin

targetSdkVersion is set as 31

prashanthramakrishnan opened this issue · comments

Describe the bug
We've our app running with the targetSDKVersion as 30 and we cannot latest Segment SDK In our app with version 1.7.0 as there the SDK is built with targetSDKVersion as 31.

To Reproduce
Steps to reproduce the behavior:

  1. Use a sample app targeting compileSdkVersion 30
  2. Use the latest Segment SDK - 1.7.0
  3. You see the below error.

image

Expected behavior
App should compile and the SDK should work as expected

Screenshots
See above:

Platform (please complete the following information):

  • Library Version in use: 1.7.0
  • Platform being tested: Android
  • Integrations in use: None as of now

Additional context
NA

please read your error message the minCompileSdk(31) specified in a dependency is greater than this module's compileSdkVersion (android-30)

our minCompileSdk is 16. see here, which is lower than your compileSdkVersion.

also, according to your error, the dependency is clearly androidx.lifecycle:lifecylce-process:2.4.0. you need to lower the version of androidx lifecycle.