Fix Settings Activity Requires Androidx Support

Here is how to fix “Settings Activity Requires Androidx Support” Error in android studio

When you are trying to add Settings Activity to your android project, you may face the error message “Settings Activity Requires Androidx Support”. This is a common error and can be fixed by typing two small lines of code in your file.

Here is how to do it:

Go to file in the left panel inside Gradle Scripts folder and add these codes, use screenshot below for reference:


AndroidX error

Leave a Reply

Your email address will not be published.