31 Build issue

Hello,


Go to Your Build.gradle file and add this code below the defaultConfig  and After Adding this code generate the apk. it will work.

 configurations.all {
    resolutionStrategy { force 'androidx.core:core-ktx:1.6.0' }
  }

View image

Thanks...