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 gradle.properties file.
Here is how to do it:
Go to gradle.properties file in the left panel inside Gradle Scripts folder and add these codes, use screenshot below for reference: