Search code examples
androidsugarorm

Error: type SugarRecord does not take parameters


I'm getting this error in compile time after I cloned the repo and imported the library folder as a module in my AndroidStudio project (I need to make some changes to the library so I have to clone it)

public class UserBean extends SugarRecord<UserBean> implements Bean, Serializable {
    ...
}

when I take a look at my SugarRecord I don't see any generic parameter neither

public class SugarRecord {

    protected Long id = null;
    ...
}

can anyone help?


Solution

  • It turns out the Generic parameter in SugarRecord is not needed anymore.