smack for android fails when using proguard
问题 I am using the smack library (4.1.2) in my Android app to connect to an XMPP server. It runs perfectly well when the code is NOT minified (ie with proguard). But in release mode, with proguard enabled, the app crashes as soon as it connects to the server. I am trying to keep all relevant smack classes unminified as suggested here: What are the recommended ProGuard rules for Smack 4.1? -keep class org.jivesoftware.smack.** { *; } -keep class org.jivesoftware.smackx.** { *; } But for me this