The dialects are quite different and if a group of four Germans met and one ould talk in Swabian, one in Saxon, one in the Palatine dialect and one in the Cologne dialect, they will have a hard time understanding each other. Also, the Germans have big problems understanding Swiss German (the dialect. There are two kinds of German in Switzerland: the group of Swiss German dialects and Swiss Standard German which is used for writing and communicating with non-Swiss people like Germans). Austrian Standard German has a lot of very distinct words, especially in the food section, so even if Austrians speak in Austrian Standard German with Germans, there might be some misunderstandings. In general though, when everyone speaks some kind of German standard variant it's ok. The German taught in textbooks is the North German standard variant and every German speaker no matter from which region understands it.