Fixed
Status Update
Comments
hu...@google.com <hu...@google.com>
hu...@google.com <hu...@google.com> #2
Reproducible with Android Studio 3.5.1 on Mac OS. Stack trace attached.
BTW, how to get similar stack trace in AS 3.6? By default it is not shown, and link to rerun task with --stacktrace flag does not reproduce the issue (probably because this command does not include running/profiling the app).
BTW, how to get similar stack trace in AS 3.6? By default it is not shown, and link to rerun task with --stacktrace flag does not reproduce the issue (probably because this command does not include running/profiling the app).
ga...@google.com <ga...@google.com> #3
hu...@google.com <hu...@google.com> #4
Indeed, it works in AS 4.1 Beta 4. Thanks for fixing!
ga...@google.com <ga...@google.com> #5
Thank you for the verifying the fix. Please continue reporting issues like this to us in the future. It's extremely helpful to improve the quality of our product.
hu...@google.com <hu...@google.com> #6
That's a good idea! We actually identified this issue 3 years ago: Issue 37115515 . We probably need to resurface that bug now.
hu...@google.com <hu...@google.com> #7
Adding Scott who wrote MergeJavaResourceTask and integrated the new zip library and may have some info on this progress.
lo...@gradle.com <lo...@gradle.com> #8
Friendly ping on this one, is there a fix for this cache relocatability problem?
hu...@google.com <hu...@google.com> #9
Sorry I've been away. The fix for this issue will be included in AGP 4.1.0-alpha03: https://android.googlesource.com/platform/tools/base/+/d5a6ff6a6d7204bf8a15ed44bf9381c9595c18c9
Note: we might need to zero out timestamps at more places, that work will be tracked at Issue 37115515 . We are also looking at creating a cacheability test for SantaTracker ( Bug 143357824 ).
Thank you for filing this issue!
Note: we might need to zero out timestamps at more places, that work will be tracked at
Thank you for filing this issue!
Description
The difference preventing a cache hit is in `mainScopeResourceFiles`, where the JAR `build/intermediates/merged_java_res/debug/out.jar` is different when building the project from two different locations.