powered by Jive Software

App crashing after click login

Hi am using smack 4.3.4 library in my app.

implementation “org.igniterealtime.smack:smack-tcp:4.3.4”
implementation “org.igniterealtime.smack:smack-experimental:4.3.4”
implementation “org.igniterealtime.smack:smack-extensions:4.3.4”
implementation ‘org.igniterealtime.smack:smack-jingle-old:4.3.4’

            exclude module: "smack-omemo"
            exclude module: "smack-omemo-signal"

During testing am getting everything ok.

but when make it signed apk and run after then when i click on login my app is crashed. the error i got is

  at org.jivesoftware.smack.SmackConfiguration.getVersion (SmackConfiguration.java)

Caused by: i.d.a.b: caused by:i.d.a.b: resource not found:/META-INF/service/org.xmlpull.v1.xmlParserFactory make sure that parser implementating XmlPull API is available

After spending 2 days I decided to ask this question. Because its asked here, github, stackoverflow many times and none of them worked.

but I found finally the solution by this article Github

He used flutter buts its not matter. all you need

disable minifyEnabled to false.
add configurations
add implementation xmlpull:xmlpull:
as he mentioned in article in your gradle build.

Hope it will saves others peoples days.

1 Like

This topic was automatically closed 62 days after the last reply. New replies are no longer allowed.