07-20-2023, 11:04 AM
I'm repairing my friend's code and got confused.
My friend wants to fetch entered text (in EditText). Seems easy, right? Well, it is but instead of user input, he gets this warning/error:
[![enter image description here][1]][1]
To be honest I'm not sure how to fix it. He is coding in Kotlin (Android 10).
Activity that contains EditText:
[![enter image description here][2]][2]
And XML:
[![enter image description here][3]][3]
This is how it looks when debugging:
[![enter image description here][4]][4]
**The app started working just fine after running "File -> invalidate Cashes/Restart" option**, I just don't understand where this warning came from and how to fix it because the error remained unchanged (even though the app works). Do you have an idea how to solve it?
All the best!
[1]:
[2]:
[3]:
[4]:
My friend wants to fetch entered text (in EditText). Seems easy, right? Well, it is but instead of user input, he gets this warning/error:
[![enter image description here][1]][1]
To be honest I'm not sure how to fix it. He is coding in Kotlin (Android 10).
Activity that contains EditText:
[![enter image description here][2]][2]
And XML:
[![enter image description here][3]][3]
This is how it looks when debugging:
[![enter image description here][4]][4]
**The app started working just fine after running "File -> invalidate Cashes/Restart" option**, I just don't understand where this warning came from and how to fix it because the error remained unchanged (even though the app works). Do you have an idea how to solve it?
All the best!
[1]:
[2]:
[3]:
[4]: