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