Android studio Fragment底部布局出现的错误 Wrong 2nd argument type. Found: 'com.example.nata.qq2.Fragment1', r
在做Android的课程设计,记录一下遇到的错误。在布置底部布局的时候一直报错,于是找度娘。找到一篇类似错误解决的博文,附上地址:http://blog.csdn.net/itermeng/article/details/52242658
看到这个瞬间明白了。
我的肯定也是参数问题!于是去看我的.Fragment1导入的包是android.support.v4.app.Fragment(import android.support.v4.app.Fragment )!!
解决:把.Fragment1 导入包改为android.app.Fragment 即import android.app.Fragment;

相关文章:

  • 2022-12-23
  • 2021-11-15
  • 2021-09-15
  • 2022-12-23
  • 2021-08-14
  • 2021-10-17
  • 2021-09-09
  • 2021-06-01
猜你喜欢
  • 2021-05-11
  • 2022-01-15
  • 2022-01-20
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
相关资源
相似解决方案