question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

R8 failure with 0.84.2

See original GitHub issue

No issue with 0.84.0

$ ./gradlew assembleRelease
...
* What went wrong:
Execution failed for task ':wear:minifyReleaseWithR8'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
   > Compilation failed to complete, position: Lnl/adaptivity/xmlutil/core/KtXmlReader;next()Lnl/adaptivity/xmlutil/EventType;, origin: /Users/yurischimke/.gradle/caches/transforms-3/d6f1060ce2ab9d21b3155c5644c15069/transformed/jetified-xmlutil-android-0.84.2.jar:nl/adaptivity/xmlutil/core/KtXmlReader.class

Project is at https://github.com/yschimke/rememberwear

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
p-fischercommented, Sep 22, 2022

The best workaround for me is to prevent EventType from being obfuscated/optimized by adding the following line to the proguard rules:

-keep public enum nl.adaptivity.xmlutil.EventType {*;}

With this workaround I can use the latest versions of XmlUtil and AGP.

1reaction
pdvriezecommented, May 10, 2022

I can confirm it is certainly a problem with r8. I managed to isolate it to a single line: https://github.com/pdvrieze/xmlutil/blob/ff63f4534fcf639f00a659ae34945763cfd6b5bf/core/src/commonMain/kotlin/nl/adaptivity/xmlutil/core/KtXmlReader.kt#L260

Removing the line will make it work, moving it to be next to the similar line for EndDocument doesn’t.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build fails with java.lang.IndexOutOfBoundsException: Index 6 ...
Run app in release variant; Error: Caused by: com.android.tools.r8.internal.Ck: java.lang.IndexOutOfBoundsException: Index 6 out of bounds ...
Read more >
R8 V10 ECU Issues - Audi R8 Forums
Pulled the codes and now it shows from Engine 1 that it has trouble communicating with the Slave ECU and showed another fault...
Read more >
Audi R8 V10 – rare engine failure - YouTube
In this video, we explain the damage that occurred to a customer's well maintained, low-mileage Audi R8. It's rare for something like this ......
Read more >
The AUDI R8 BUYERS GUIDE | All common problems explained
This Audi R8 buying guide is here to help you get the best car possible when buying a first generation Audi R8. Scottish...
Read more >
Everything Broken and Faults on my cheap Gen 2 Audi R8!
My instagram:https://www.instagram.com/peterbjorck/My second youtube channel (Swedish):https://www.youtube.com/BusbilMy Facebook page for my ...
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