The expression cannot be a selector (occur after a dot) code example
Example 1: The expression cannot be a selector (occur after a dot)
Toast.makeText(applicationContext, "Clicked", Toast.LENGTH_SHORT).show()
Example 2: The expression cannot be a selector (occur after a dot)
Toast.makeText(this@MainActivity, "Clicked", Toast. LENGTH_SHORT).show()