Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy

This happened to me when I tried to migrate to Android X.The reason behind is that not all libraries have been migrated to Android X.

  • You may manually remove dependencies. : Try to see all dependencies and find out the conflicting one. You may use Gradle View plugin for Android Studio or use class navigation from menu. (In android Studio: Navigation -> class; Now a search box appears and tick 'include non project items'; paste the whole class name creating error and search now; Find out the class having this dependency and remove manually!). Please check if you have any import statements left in files which uses the non AndoirdX dependencies still. If yes, please remove them too.

or

  • In Android studio, Refractor -> Migrate to AndroidX.

or alternatively(manual way)

  • add following to gradle.properties .
   android.useAndroidX=true
   android.enableJetifier=true

This makes Android Studio to migrate all dependencies. For more info please check here


I have a similar problem. In my case, it was because I am using Glide library and androidx. This solution works for me:

  1. Set enableJetifier value to true
  2. Update Gradle build tool to 3.3.0-alpha08 with Gradle version 4.9

source


in my case just change your firebase version from

implementation 'com.google.firebase:firebase-auth:19.1.0'

to implementation 'com.google.firebase:firebase-auth:16.1.0'