Error: type SugarRecord does not take parameters
Error: type SugarRecord does not take parameters
在我克隆存储库并将库文件夹作为模块导入到我的 AndroidStudio 项目中后,我在编译时遇到此错误(我需要对库进行一些更改,因此我必须克隆它)
public class UserBean extends SugarRecord<UserBean> implements Bean, Serializable {
...
}
当我查看我的 SugarRecord 时,我也没有看到任何通用参数
public class SugarRecord {
protected Long id = null;
...
}
有人可以帮忙吗?
事实证明,SugarRecord 中的 Generic 参数不再需要了。
在我克隆存储库并将库文件夹作为模块导入到我的 AndroidStudio 项目中后,我在编译时遇到此错误(我需要对库进行一些更改,因此我必须克隆它)
public class UserBean extends SugarRecord<UserBean> implements Bean, Serializable {
...
}
当我查看我的 SugarRecord 时,我也没有看到任何通用参数
public class SugarRecord {
protected Long id = null;
...
}
有人可以帮忙吗?
事实证明,SugarRecord 中的 Generic 参数不再需要了。