In Roster class the method: public static synchronized Roster getInstanceFor(XMPPConnection connection) defines XMPPConnection interface class as its passing parameter.
This is flagged as error when a calling routine uses an interface class as passing parameter in Roster.getInstanceFor().
My apology, I think it is my mistake.
Last week, android studio flagged this as error in aTalk source; However I just recheck again, seem it is no more flagged as error.
Sorry for inconvenience cause to everybody.