使用smartTable的 table.setData()方法报错,找不到

今天使用了SmartTable表格框架GitHub: https://github.com/huangyanbin/smartTable
但是在使用过程中出现了问题,在调用table.setData()方法时报错,显示红色,找不到该方法,如图:
使用smartTable的 table.setData()方法报错,找不到
报错原因:在Activity中导入的SmartTable包错误:使用smartTable的 table.setData()方法报错,找不到

将:import com.bin.david.form.annotation.SmartTable;改为import com.bin.david.form.core.SmartTable;成功解决:
使用smartTable的 table.setData()方法报错,找不到

相关文章:

  • 2021-04-04
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2021-12-07
  • 2022-12-23
猜你喜欢
  • 2021-12-21
  • 2021-04-17
  • 2022-12-23
  • 2021-06-15
  • 2021-09-09
  • 2022-01-01
  • 2021-04-07
相关资源
相似解决方案