androidx.fragment.app.Fragment

Hi

Error appears when I try to import it

Whats wrong? Only v4.support appears

Ok solved - found the mistake

have to add

dependencies {
def fragment_version = “1.3.2”

// Kotlin
implementation "androidx.fragment:fragment-ktx:$fragment_version"
// Testing Fragments in Isolation
debugImplementation "androidx.fragment:fragment-testing:$fragment_version"

}

and don’t forget this

android.useAndroidX=true
android.enableJetifier=true

After changing dependencies -

I changed also
import android.support.v7.app.AppCompatActivity

to

import androidx.appcompat.app.AppCompatActivity;