allan.conda
06/20/2020, 9:10 PMIan Lake
06/20/2020, 9:15 PMallan.conda
06/20/2020, 9:27 PMAppCompat does use an older version of FragmentsYep, but this line should at least work from 1.1.0 (changed FragmentActivity extends androidx.core.app.ComponentActivity into androidx.activity.ComponentActivity; The setContent extension is defined on the latter) And yes it seems the app is using 1.2.4 on runtime based on the dependency graph and it’s running fine. Right now my workaround is just use ComponentActivity directly instead of AppCompatActivity, but I’m not sure that’s the right way. The codelab tut is extending AppCompatActivity
Andrey Kulikov
06/21/2020, 1:03 PMallan.conda
06/22/2020, 3:55 AMif you are going to only use compose ui and not Views in this activity it is completely fine to use ComponentActivitygood to know! I’ll go ahead with this for now. Thanks