The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the,
来源:互联网 发布:猎奇网源码 编辑:程序博客网 时间:2024/05/02 06:45
The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the arguments (int, SettingFragment, String)
今天遇到这样一个很奇葩的错误信息,后来查到我导入的包有问题 import android.app.Fragment;
import android.app.FragmentManager; 其实我应该使用的是 import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager; 然后自己查看了一下API二者差别还是蛮大的 import android.app.Fragment 只能在API版本大于11的时候使用 而不包含getFragmentManager() 和 getSupportFragmentManager()
两个方法的 虽然在代码这样写不会报错的 但是 replace(int, Fragment, String)执行的时候会一直出现错误 提示上面那个错误信息
0 0
- The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the
- The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the,
- 错误:The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the argum
- The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the argument
- The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the argument
- 错误:The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the argum
- The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable...
- Android Error - The method replace(int, Fragment) in the type FragmentTransaction is not applicable
- The method add(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (i
- android学习——The method replace(int, Fragment) in the type FragmentTransaction is not applicable for t
- The method replace(int, Fragment) in the type FragmentTransaction is not applica
- The method replace(int, Fragment) in the type FragmentTransaction is not app 解决方法
- The method replace(int, Fragment) in the type FragmentTransaction is not applica
- [真理永垂不朽]The method XXX in the type FragmentTransaction is not applicable for the arguments XXX
- .replace(R.id.container, new User()).commit();/The method replace(int, Fragment) in the type FragmentTransaction is not app
- The method add(Fragment) in the type ArrayList<Fragment> is not applicable for the arguments (ImageF
- The method setStatus(int) in the type Goods is not applicable for the arguments (Integer)
- The method setBackground(Drawable) in the type View is not applicable for the arguments (int)
- Tsinsen 清橙 A1002. 01序列2 (循环)
- Cisco DMVPN介绍与配置
- iOS——UIAlertView使用
- (五)超级猜图Demo引出的细节
- 2015年2.4日工作日志---------------赵鑫
- The method replace(int, Fragment, String) in the type FragmentTransaction is not applicable for the,
- 简单工厂、工厂方法和抽象工厂模式示例
- poj1990&&uva1428 树状数组
- Enterprise Architect使用教程
- 三维立体图的原理和欣赏方法
- 五大常用算法之二:动态规划算法
- Struts 2的基石——拦截器(Interceptor)
- 解决ssh的"Write failed: Broken pipe"问题
- (六)应用图标和启动图片