Android Studio 4.0 seems to insert random garbage into layout files

Viewed 51

I recently upgraded to Android Studio version 4.0. I have started seeing strange behavior whereby layout files get corrupted with seemingly random text. This text is not anything I have typed anywhere in the project.

Why is this happening and what to do about it?

I have done "invalidated caches / restart" several times. Doesn't help. Fortunately I have version control so can recover the damaged files, but this has happened 4 times in the last hour!

enter image description here

1 Answers

I've been using Android Studio 4 since the beta version came out, and I've had no issues.

This might happen if you have any plugins installed, that might still not be compatible with this newer version.

Related