有多重解决方案:https://stackoverflow.com/questions/14470896/android-v4-pagertabstrip-causes-illegalstateexception-must-measure-with-an-e 我的情况是: 将center改为top即可