Open zhouZJ opened 7 years ago
ViewPager 的错误 Error:(80, 18) 错误: 找不到符号 符号: 方法 addOnPageChangeListener(JobFragment.MyOnPageChangeListener) 位置: 类型为ViewPager的变量 viewPager
Fragment的报错: Error:(52, 5) 错误: 方法不会覆盖或实现超类型的方法 Error:(54, 24) 错误: 不兼容的类型: Context无法转换为Activity
这个问题是我同事的锅。。他之前使用了V4 --- Jar包,现在删除了那个V4 包,重新依赖了跟楼主同样的V4包就解决了。。
在依赖了楼主的项目后会报出 如下错误:
ViewPager 的错误 Error:(80, 18) 错误: 找不到符号 符号: 方法 addOnPageChangeListener(JobFragment.MyOnPageChangeListener) 位置: 类型为ViewPager的变量 viewPager
Fragment的报错: Error:(52, 5) 错误: 方法不会覆盖或实现超类型的方法 Error:(54, 24) 错误: 不兼容的类型: Context无法转换为Activity