I had the same problem, when I followed the instructions in the section 5.8.8.1 of the 6.4 developer’s guide. (Vaadin extension) The problem went away when I stopped using Safari. With Chrome the problem was gone.
OK, I again ran into this problem. From my point of view it’s a bug in Studio. When you edit a UI screen in Studio, Studio instead of overwriting the original UI screen sometimes tries to create a new UI screen with the same ID (screen name) and the same agent. And Studio complains about that. The workaround is pretty simple: Select any agent (there are four: empty, PHONE, DESKTOP, TABLET) that you do not use at that moment, then Studio creates a new UI screen with the same ID (screen name) but with a different agent. Afterwards you can delete the old screen and set correct agent or delete the the agent setting.
Yes, it’s a confirmed bug and it’s already fixed - see the link to the issue on the right panel. The bug-fix release will be available in the next couple of days.
Yes, I’m on macOS Sierra 10.12.3 and I’m using Studio 6.4.2 and I’m still getting this kind of error after few changes in Screen Designer and/or XML. Only thing that repairs this is closing project in Studio and reopening it. I’ve downloaded and installed studio-6.4.2-macosx.dmg on March 15, 2017.