The method add(int, Fragment) in the type FragmentTransaction is not applica

来源:互联网 发布:java读取json文件 编辑:程序博客网 时间:2024/05/02 04:39

使用Eclipse创建新的工程,将import全部删掉又重新自动生成一次,报错: The method add(int, Fragment) in the type FragmentTransaction is not applica



解决方案:

应该导入的是import android.support.v4.app.Fragment;导入成了import android.app.Fragment会报上面的错误

0 2
原创粉丝点击