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 gradle.properties file.


Advertisements


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:

android.useAndroidX=true
android.enableJetifier=true

AndroidX error

Post navigation

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.