kotlin - In main activity binding gonna be unresolved after cleanup inspection errors and view binding is also true - Stack Over

this is after cleanup the inspection errorwhile all dependencies are still same and viewBind is also tr

this is after cleanup the inspection error while all dependencies are still same and viewBind is also true

How to solve this?

override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)

        setSupportActionBar(binding.appBarMain.toolbar)

        val navController = findNavController(R.id.nav_host_fragment_content_main)
        Log.d("MainActivity", "NavController initialized")
        var drawerLayout: DrawerLayout = binding.drawerLayout
        val navView: NavigationView = binding.navView

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744174276a4561679.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信