android.support.v4.app.Fragment unresolved symbol

In case you will reach this error update your gradle.properties with this configuration:
android.useAndroidX=false
android.enableJetifier=false