I am implementing an android app (in Kotlin, but that is not relevant to the Problem) in my free time and I try to use android jetpack and new libraries. I have a single Act
setOf and setDrawerLayout are depricated you should use
AppBarConfiguration configuration = new AppBarConfiguration.Builder(R.id.defaultFragment, R.id.firstFragment,R.id.secondFragment).setOpenableLayout(drawerLayout).build();