Duplicate ID, tag null, or parent id with another fragment for com.google.android.gms.maps.MapFragment
问题 I have an application with three tabs. Each tab has its own layout .xml file. The main.xml has its own map fragment. It\'s the one that shows up when the application first launches. Everything works fine except for when I change between tabs. If I try to switch back to the map fragment tab, I get this error. Switching to and between other tabs works just fine. What could be wrong here? This is my main class and my main.xml, as well as a relevant class that I use ( you will also find the error