以下语句显示错误:
Presence p_tester = Presence(Presence.Type.available,"having lunch",1,
Presence.Mode.available);
IDE突出显示的错误是:
cannot find symbol
symbol: method Presence(Type,String,int,Mode)
尽管我导入了正确的类,但为什么会出现此错误
(org.jivesoftware.smack.packet.Presence)
?