How to enable androidx artifact in android studio 4.0.1

You will need Android Studio 3.2 or higher. If you don’t have it installed, you can download the latest version from the Android Studio site .

  1. Open Android Studio.
  2. Select Open an existing Android Studio Project .
  3. Open the android directory within your app.
  4. Wait until the project has been synced successfully. (This happens automatically once you open the project, but if it doesn’t, select Sync Project with Gradle Files from the File menu).
  5. Select Migrate to AndroidX from the Refactor menu.
  6. If you are asked to backup the project before proceeding, check Backup project as Zip file , then click Migrate . Lastly, save the zip file in your location of preference.