Even if I add libraries I found over the internet , the same error occurs.
Not it you install them correctly and restart the IDE. Since you haven't said what libraries you installed, where you installed them, and whether or not you restarted the IDE, you are on your own.
PS: That is NOT the way to post code!