title: Android X library throwing error when compiling
body: <p>I'm getting this error when building my project in android studio 3.1.3 </p>
  
  <blockquote>
    <p>Program type already present:
    android.support.v4.app.INotificationSideChannel$Stub$Proxy
    Message{kind=ERROR, text=Program type already present:
    android.support.v4.app.INotificationSideChannel$Stub$Proxy,
    sources=[Unknown source file], tool name=Optional.of(D8)}</p>
  </blockquote>
  
  <p>I started migrating to <strong>AndroidX</strong> libraries here's <code>gradle.build</code>:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  apply plugin: 'kotlin-android'
  
  apply plugin: 'kotlin-android-extensions'
  
  android {
      compileSdkVersion 28
      defaultConfig {
          applicationId "com.jimmy.bitcoinpriceindex"
          minSdkVersion 19
          targetSdkVersion 28
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  
  //    enable databinding
      dataBinding {
          enabled = true
      }
  
  //    add java 8 features support
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
  
      testImplementation 'junit:junit:4.12'
      androidTestImplementation "androidx.test:runner:$versions.test"
      androidTestImplementation "androidx.test.espresso:espresso-core:$versions.espresso"
      implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  
  
      // ViewModel and LiveData
      implementation "androidx.lifecycle:lifecycle-extensions:$versions.lifecycle"
  
      implementation "androidx.appcompat:appcompat:$versions.support"
  
      implementation "androidx.constraintlayout:constraintlayout:$versions.constraint_layout"
      implementation "com.github.bumptech.glide:glide:$versions.glide"
  
      // work manager dependency
      implementation "android.arch.work:work-runtime:$versions.work"
  
      implementation ("com.squareup.retrofit2:retrofit:$versions.retrofit"){
          // exclude Retrofit’s OkHttp dependency module and define your own module import
          exclude module: 'okhttp'
      }
      implementation "com.squareup.retrofit2:converter-gson:$versions.retrofit"
      implementation "com.google.code.gson:gson:$versions.gson"
  
      implementation "com.squareup.okhttp3:logging-interceptor:$versions.loggin_interceptor"
      implementation "com.squareup.okhttp3:okhttp:$versions.okttp"
  
  }
  
  
  apply plugin: 'kotlin-kapt'
  </code></pre>