@DonManfred :
Sorry, this was my first post

Thank you for your explaination.
@Eme Fibonacci :
Great! It's solved. The problem was the layout file. I created a new one and it worked even if I didn't understand why there was the error, I redid it the same.
Thank you very much.