As the title suggests, in this article I’m going to explain how you can resolve AndroidX errors that you face in your Flutter projects.

I’m seeing a lot of Flutter devs banging their heads with the AndroidX error in their Flutter applications. This occurs when a package or dependency used by the app has migrated to AndroidX or when the libraries of android.support are incompatible with AndroidX.

Before starting, I would like to tell what is AndroidX is.

AndroidX is a redesigned library to make package names more clear. So from now on, the Android hierarchy will only be for Android default classes that come with the Android operating system. Other library/dependencies will be part of AndroidX and all new development will be updated in AndroidX.

Example:

Old com.android.support:recyclerview-v7

New androidx.recyclerview:recyclerview:1.0.0

Ok, but how to solve this???