You likely stirred your batter way too much. To avoid this from happening, make sure to mix together your wet ingredients first. When they're already well mixed, that's when you add in the dry ingredients. Mix them together until everything is well mixed but still slightly lumpy. Remember not to overdo it!