-
Notifications
You must be signed in to change notification settings - Fork 51
Cache miss with AGP 7.4 #416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hi @GianfrancoMS, thanks for reporting this issue. If you test 2.6.2 with AGP 7.3.1 works right? We will test again the AGP 7.4 reproducing the JdkImage issue. If is not fixed, we will apply again the workaround in the latest AGP. |
2.6.2 with AGP 7.3.1 works perfectly. It only happens with AGP 7.4. |
Hi @GianfrancoMS, I finished the investigation and here is the result: The existing issue mentioned https://issuetracker.google.com/u/1/issues/234820480 is not reproducible in AGP 7.4, so the workaround is correctly not applied in the AGP 7.4. Now, why are we seeing this cache miss in the JavaCompile? We observe that the file properties differences lay on This is a known issue that normalization can fix. To be sure, I compared two builds with different Java versions and collected the jar for each job. Applying a diff on the two folders we have:
Please let me know if the normalisation configuration works for you, I would recommend verifying the jar differences to better understand what to normalize. |
It's a really weird difference. CI
LOCAL
|
Applying normalization with these values worked:
I added the extra ones just to make sure we do not have problems with other JDK distributions. Do you think it is a reasonable decision? |
@GianfrancoMS, we have one interesting finding: |
Fixed in #419 |
Uh oh!
There was an error while loading. Please reload this page.
At my company, we're trying to update to AGP 7.4 and to the Android Cache Fix Gradle Plugin 2.6.2, but we have encountered a cache miss with the task
compile${variant}JavaWithJavac
. This cache miss did not happen in previous versions.Versions:
Let me know if you need a scan dump since my GE instance is behind a VPN.
The text was updated successfully, but these errors were encountered: