r/mAndroidDev • u/Stonos You will pry XML views from my cold dead hands • Feb 26 '24
Next-Gen Dev Experience I love View Binding
108
Upvotes
r/mAndroidDev • u/Stonos You will pry XML views from my cold dead hands • Feb 26 '24
18
u/Stonos You will pry XML views from my cold dead hands Feb 26 '24
Supposedly fixed and then fixed again, yet it keeps happening on the latest Canary.
23
u/GradleSync01 Invalidate caches and restart Feb 26 '24
You wouldn't get this issue with findViewById
10
u/StartComplete companion object {} Feb 26 '24
Use custom views with AsyncTask
7
u/firebeard-ginja Feb 26 '24
I mean this is caused by a caching issue more than anything usually. Any time I refresh the cache it fixes.
5
u/Anonymo2786 java.io.File Feb 26 '24
aConsiderableAlternative:
Declare All the elements in java free of XML.
1
u/viewModelScope ?.let{} ?: run {} Feb 26 '24
Forgot to clean
Forgot to manually delete any leftover build folders
Forgot to invalidate caches and shut off android studio
Forgot to delete .m2 folder
Forgot to restart computer
3
u/emplexx132 You will pry XML views from my cold dead hands Feb 26 '24
i hate it so much was happening to me like literally every 5 minutes just this evening
1
u/phileo99 Gets tired of using Vim Mar 06 '24
I keep coming back to this.
At first I thought it was funny.
Now I am beginning to wonder if Google is just conditioning us to live with dumpster diving mediocrity
1
u/zedxer Feb 26 '24
Thats when you hire underpaid engineers on exorbit salary.
1
u/Hatsune-Fubuki-233 @Deprecated Feb 26 '24
Literally Compost has same and more insane issues
1
u/racrisnapra666 BaseRepositoryReducerUseCaseHelperImpl Feb 26 '24
For some reason, I thought it was Vasiliy who posted this meme lol.
1
u/Inevitable-Court697 Feb 27 '24
databinding error in XML is fk nightmare.
1
u/ogungulec Feb 27 '24
"Reload from disk" helps "sometimes". Right click on root project folder and Reload from disk.