我刚从互联网上获取这个api类现在我正在我的项目中集成一切正常但只得到一个错误是构造函数JSONArray未定义。
private void fireEvent(mEvent event, Object obj) {
try {
//Called for EVERY event. //getting error here
JSONArray arrayObj = obj instanceof JSONArray ? (JSONArray) obj : new JSONArray(new Object[] {obj});
for (mEventListener listener : listeners) {
listener.eventFired(this, event, arrayObj);
}
//Call the appropriate handler.
switch (event) {
case waiting:
for (mEventListener listener : listeners) {
listener.chatWaiting(this);
}
break;
case connected:
for (mEventListener listener : listeners) {
listener.chatConnected(this);
}
break;