Crash with Proguard in Release Mode

3 Kommentare

  • Sebastian Schneider

    Hi Zendesk-Team

    We've run our own internal investigation of the SDK issue, and have found the root cause.

    s.b.a.a: caused by: s.b.a.a: resource not found: /META-INF/services/org.xmlpull.v1.XmlPullParserFactory make sure that parser implementing XmlPull API is available

    It looks like for some reason the class is removed during proguard / R8 processing.

    However, this should be caught by your error handling, which itself is faulty:
    The cause of the crash is due to invalid logging on the error handling side.

    try {
    XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
    factory.setFeature(Xml.FEATURE_RELAXED, true);
    xmlPullParser = factory.newPullParser();
    } catch (XmlPullParserException var6) {
    Logger.w("RequestActivity", "Unable to parse rich text. Error: '%s' | '%s'", new Object[]{var6.getLocalizedMessage()});
    } finally {
    this.xpp = xmlPullParser;

    Where `Logger.w`s string format expects two arguments, but only is given one.


    Could this be fixed in a bugfix of your SDK?

  • Fred

    Sebastian Schneider I have the exact same issue. Did you find any solution? It seems to be still happening with the latest Zendesk SDK.

  • Fred

    So I was using Zendesk SDK with Flutter, and it seems like the root issue is caused by:

        sdk: flutter

    in pubspec.yaml.


Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk