aSmack error: XMPPConnection is abstract; cannot be instantiated
问题 I'm following a tutorial to make a very basic chat app with Android Studio, but I'm getting the error: Error:(131, 45) error: XMPPConnection is abstract; cannot be instantiated at the following line: ConnectionConfiguration connConfig = new ConnectionConfiguration(HOST, PORT, SERVICE); XMPPConnection connection = new XMPPConnection(connConfig); And I'm also getting some "Unhandled exception" when trying to use XMPPConnection elements. Also link to the tutorial: LINK 回答1: Looks like this