您的位置:首页 > 移动开发

The method add(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (i

2016-02-25 17:23 489 查看
The method add(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, LayoutAnimaate.PlaceholderFragment)

解决:导包问题

it helped me, my Fragment was imported be android.app.fragment, I changed the import to android.support.v4.app, and
the add error of my FragmentActivity Disapeared
import android.support.v4.app.Fragment;-----》import android.app.Fragment;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息