I added MaterialAlertDialog to my project which was not using androidx. This caused errors during the next build. So i removed the 'implementation' statement from app level build gradle. But still i am having manifest merge error when i try to build my project.

This is the error i get during build time

> 
> Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
>  is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
>  Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:19:5-152:19 to override.
> 
> 
> 

So far i have tried the following solutions,Close and reload my project. Do a clean and rebuild .delete the .gradle and .idea folders in my project and build it again

These are the dependencies in my project

```
    dependencies 
    {
        implementation fileTree(include: ['*.jar'], dir: 'libs')
        implementation 'com.android.support.constraint:constraint-layout:1.1.3'
        androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
            })
        implementation "com.android.support:appcompat-v7:${android_support_version}"
        implementation "com.android.support:design:${android_support_version}"
        implementation 'com.github.lzyzsd:circleprogress:1.1.0@aar'
        implementation 'com.github.JakeWharton:ViewPagerIndicator:2.4.1@aar'
        implementation 'commons-net:commons-net:3.3'
        implementation('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') {
            transitive = true
        }

        implementation "de.hdodenhof:circleimageview:${circle_imageview}"
        implementation "com.github.bumptech.glide:glide:${glide_version}"
        implementation "com.android.support:recyclerview-v7:${android_support_version}"
        implementation "com.android.support:cardview-v7:${android_support_version}"
        implementation "com.squareup.retrofit2:retrofit:${retrofit_service_version}"
        implementation "com.squareup.retrofit2:converter-gson:${retrofit_gson_convertor}"
        implementation "com.clough.android.androiddbviewer:androiddbviewer:${dbviewer_version}"
        implementation "com.android.support:multidex:${multidex_version}"
        implementation "com.github.crosswall:Android-Coverflow:${viewPager_version}"
        implementation "com.squareup.okhttp3:logging-interceptor:3.4.0"
        implementation project(':sdkui')
        implementation 'com.github.ronaldsmartin:Material-ViewPagerIndicator:1.0.4'
        implementation 'com.google.android.gms:play-services-base:16.0.1'
        implementation 'com.google.android.gms:play-services-identity:16.0.0'
        implementation 'com.google.android.gms:play-services-auth:16.0.1'
        implementation 'com.google.android.gms:play-services-auth-api-phone:16.0.0'
        implementation 'com.google.firebase:firebase-config:16.1.0'
        implementation 'com.google.firebase:firebase-core:16.0.4'
        implementation 'com.google.firebase:firebase-messaging:20.0.0'
    }
    apply plugin: 'com.google.gms.google-services'

```