Unity 2D Collider did not create any collision shapes as they all failed verification

I am trying to make a 2d topdown car game but whenever I add a collider a message appears saying:

"The collider did not create any collision shapes as they all failed verification. This could be because they were deemed too small or the vertices were too close. Vertices can also become close under certain rotations or very small scaling."

I am pretty sure it is because I have rotated the car 90degrees on the X axis but I can’t change that as I need that for the top down game. I’ve looked but haven’t found a solution for this error.

It’s because you’re rotating your 2D collider out of the 2D plane. The 2D collider only exists in the XY plane, so when you rotate it 90 degrees into the Z plane only a sliver exists in the XY plane. I would suggest putting your sprites and your colliders on different game objects, and only rotate the sprite objects - leave the colliders at a 0 rotation.