getsupportfragmentmanager 没有这个方法

让activity继承自fragmentactivity就行了。

原文地址:https://www.cnblogs.com/caoxinyu/p/6647868.html