Go to project settings. On the General tab find and select 2D Physics. Name the layers accordingly. For example: Layer 1 - > Player