R8 failure with 0.84.2
See original GitHub issueNo 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:
- Created a year ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The best workaround for me is to prevent
EventType
from being obfuscated/optimized by adding the following line to the proguard rules:With this workaround I can use the latest versions of XmlUtil and AGP.
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.