check error string for setError java 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")