Is there any way to use androidX library like(Firebase Crashlytics) in old project without migrating to whole project into androidX?

Viewed 61

I want to add firebase crashlytics into my project which uses a support library. when I add dependency of crashlytics it asks me to migrate my whole project to androidX library but I don't want to migrate my project I want to add firebase crashlytics into my current project.

Error: This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry.

1 Answers

You can use Both the support and the androidx libraries. You just needed to understand the error. To use that, follow the steps:

Go to file gradle.properties. At the bottom, add this line:

android.useAndroidX=true
Related