No 2D Object in GameObject

I don’t have 2D Object in menu. I have 2021 version because I want to do 2DPlatform microgame, but I can not finish one exercise because I don’t have 2D option in GameObject.

How can I fix this?

This happens because you don’t have the 2D package installed. Click on Windows>Package Manager and change it to Unity Registry, then install the 2D package . This will resolve your issue.