IDE 2.x is for Problems with the Arduino IDE itself NOT your project. It says so in the description of the section. Therefore I have moved your post here.
You might want to look at this How to get the best out of this forum before you proceed any further.
Also modify your post so that the error message is in the text of your reply and not in the title. Use the pencil icon under your post to exit its text.