Error: project contains screens with the same id

Hello,
I tried to delete one screen (SomethingFragment) that extends MainFragment and subsequently I create another one with same name. But the IDE return this error: project contains screens with the same id: SomethingFragment. It seems that the link to the old screen still remains.
Where this link are in?
Thank you for your help.

Hi,
Please try to use Edit -> Find -> Find in Path (Ctrl+Shift+F) action to search reference to this screen ID.
Definitely there is still some screen with this ID in your project.

Hi Alex,
it was the first thing I did, the search returns only the fragment of which I am aware. It seems that the link to the old screen still remains, but I don’t understand where it is.
Thank you very much.

It can be a problem with deployment.
Try to execute CUBA > Build Tasks > Undeploy or in the command line: gradlew undeploy

1 Like

Can also try to Clean the project:

CUBA > Build Tasks > Clean

That worked for me some time ago.

4 Likes

Hello guys,
only CUBA > Build Tasks > Clean has been successful, after the undeploy the system return same error.
Thank you very much for you help!
RP

1 Like