Status Update
Comments
ch...@google.com <ch...@google.com> #2
Hello,
Thank you for reaching out to us with your request.
We have duly noted your feedback and will thoroughly validate it. While we cannot provide an estimated time of implementation or guarantee the fulfillment of the issue, please be assured that your input is highly valued. Your feedback enables us to enhance our products and services.
We appreciate your continued trust and support in improving our Google Cloud Platform products. In case you want to report a new issue, Please do not hesitate to create a new issue on the
Once again, we sincerely appreciate your valuable feedback; Thank you for your understanding and collaboration.
is...@revolut.com <is...@revolut.com> #3
Will be any communication to me when google starts working on this feature?
ch...@google.com <ch...@google.com> #4
Good to hear that you find a workaround already. I was able to reproduce the issue and will start looking at fixing this. Attaching a compiler dump that reproduces the issue.
is...@revolut.com <is...@revolut.com> #5
Appreciate the quick response! Do you have an ETA on when the fix might be available?
sg...@google.com <sg...@google.com> #6
There is currently no ETA for a fix, as this is caused by some of the fundamental assumptions we have in R8. A fully correct fix will require some time to land.
Description
We are developing an SDK and want to obfuscate it with
minifyEnabled=true
.However, when an application is launched with the obfuscated SDK, it crashes with the following error:
To simplify the issue, we have provided BugExample.zip in attachments, which contains a minimal reproducible example.
:app
and:mylibrary
.:mylibrary
is an SDK that we want to obfuscate;:app
is demo application that integrates this SDK;:mylibrary
module, we have two classes:NavBarScrollingBehaviour
andNavBarUsage
;NavBarScrollingBehaviour
extendsAppBarLayout.ScrollingViewBehavior
which itself extendsHeaderScrollingViewBehavior
;HeaderScrollingViewBehavior
has two final methodssetOverlayTop
andgetOverlayTop
;NavBarUsage
class these two methods are used;:mylibrary
, the generated mapping.txt file contains two suspicious lines:Looks like R8 adds these two synthetic methods during obfuscation and optimization which conflict with the original final methods from
HeaderScrollingViewBehavior
.If we slightly modify
NavBarScrollingBehaviour
code as follows, the crash disappears:Is there a way to prevent R8 from adding these synthetic methods during obfuscation adn optimization?