2

i updated android studio and build.gradle changed. In old versions, I was able to add like:

dependencies {
def lifeCycleExtensionVersion = '1.1.1'    
implementation "android.arch.lifecycle:extensions:$lifeCycleExtensionVersion"}

But now i am getting error how can i add

  • can you share what error are you getting? – Irfan Anwar Feb 04 '22 at 23:01
  • Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.7.0-runtime (androidx.core:core:1.7.0) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0) – Asım Odabaş Feb 04 '22 at 23:05
  • You can add below 2 lines into your gradle.properties file: android.useAndroidX=true android.enableJetifier=true – Irfan Anwar Feb 04 '22 at 23:09

1 Answers1

0

You are getting different error not as you mentioned in question please follow this URL

duplicate-class-android-support-v4-app-inotificationsidechannel-found-in-modules

Irfan Anwar
  • 1,878
  • 17
  • 30