我的应用有问题。 计划说:
"error: no suitable method found for replace(int,android.app.Fragment)
method FragmentTransaction.replace(int,android.support.v4.app.Fragment,String) is not applicable
(actual and formal argument lists differ in length)
method FragmentTransaction.replace(int,android.support.v4.app.Fragment) is not applicable
(actual argument android.app.Fragment cannot be converted to android.support.v4.app.Fragment by method invocation conversion)"
我不知道我能用它做些什么。
答案 0 :(得分:2)
看起来你在类中导入了错误类型的Fragment。您需要导入android.support.v4.app.Fragment
而不是android.app.Fragment