Proguard replacement R8 and xmlpull

See original GitHub issue

Does library need to also add exclude group: 'xmlpull', module: 'xmlpull' to simpleframework:simple usage?

I have come across an issue and another similar one. AOSP team member’s insight at https://issuetracker.google.com/issues/123054725#comment5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
NLLAPPScommented, Apr 25, 2019

It does not create any errors but strips of some parts which causes crash in the app. I have added the following rule

-keep class org.xmlpull.v1.* {*;} -dontwarn org.xmlpull.v1.** -dontwarn javax.xml.namespace.**

and it prints out

AGPBI: {"kind":"warning","text":"Library class android.content.res.XmlResourceParser implements program class org.xmlpull.v1.XmlPullParser","sources":[{}],"tool":"R8"}

However, this is due to a library having it included as part of their dependent - according to issue tracker information

0reactions
BrightVancommented, Jul 13, 2020

Could you open another issue for this?

ok ,sorry about this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with Proguard and XmlPullParser - Stack Overflow
Your ProGuard configuration and build process seem to be mixing up ... You can indeed avoid warnings about duplicate xmlpull classes by ...
Read more >
ProGuard Manual: Troubleshooting - Guardsquare
Troubleshooting for building Java and Android apps with ProGuard.
Read more >
Android Proguard: Xmlpullparser Issues - ADocLib
Troubleshooting for building Java and Android apps with ProGuard. ... Ask questionsProguard replacement R8 and xmlpull AOSP team member's insight at ...
Read more >
Android: Proguard, D8, R8 what are they? | by Leo N - IMStudio
SourceCode(.java) — javac → Java Bytecode(.class) — Proguard → Optimized ... R8, a new tool designed to replace ProGuard as the default shrinker...
Read more >
XmlPullParser - Android Developers
XML Pull Parser is an interface that defines parsing functionality provided ... Set new value for entity replacement text as defined in XML...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found