Assigned
Status Update
Comments
ch...@google.com <ch...@google.com>
ch...@google.com <ch...@google.com>
ch...@google.com <ch...@google.com>
ch...@google.com <ch...@google.com> #2
I just attached a minimal test application with duplicated and multiline traces. Provided are a couple of logcat files and screenshots.
To me this isn'r really a big problem, since AS compiles my application and lets me debug it. That's what I use it for in my company. I just found it a bit annoying that something that worked one way in AS 2.x and 3.0, suddenly changed in 3.1. The new way results more time-consuming to me while debugging and reviewing the logs.
Could this be made configurable? Not necessarily in the UI, but editing some properties file. Thanks. :)
To me this isn'r really a big problem, since AS compiles my application and lets me debug it. That's what I use it for in my company. I just found it a bit annoying that something that worked one way in AS 2.x and 3.0, suddenly changed in 3.1. The new way results more time-consuming to me while debugging and reviewing the logs.
Could this be made configurable? Not necessarily in the UI, but editing some properties file. Thanks. :)
ch...@google.com <ch...@google.com> #3
I have the same problem.
ch...@google.com <ch...@google.com> #4
I also have the same problem.
Description
Android Gradle Plugin 8.8.2 Hilt/Dagger 2.55
It looks like R8 is optimizing the code of the library (external dependency) in the way which breaks Hilt compatibility. After investigation I found out that when library ViewModel class is obfuscated in the final app build then the key by which it's registered into hilt viewmodel map is not changed (still contains nonobfuscated class name). Having these options in library proguard rules:
does not help. However wverything works when library build has
isMinifyEnabled
is set to falseI'm attaching sample project which reproduces this issue.
gradlew :library:assembleRelease
to build library aarapp
module (not as aproject()
dependency but asaar
)isMinifyEnabled
is set to true)