check error of setError android studio code example
Example: android studio set error
val editText = findViewById<TextInputEditText>(R.id.TextInputEditText)
editText.setError("Error msg")
val editText = findViewById<TextInputEditText>(R.id.TextInputEditText)
editText.setError("Error msg")