Skip to content
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

Issue Running Project #491

Closed
pakhranijatin97 opened this issue Jan 23, 2024 · 3 comments · Fixed by #493
Closed

Issue Running Project #491

pakhranijatin97 opened this issue Jan 23, 2024 · 3 comments · Fixed by #493
Assignees
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project

Comments

@pakhranijatin97
Copy link

Execution failed for task ':app:processDebugResources'.

Could not isolate parameters com.android.build.gradle.internal.dependency.AarResourcesCompilerTransform$Parameters_Decorated@5a7d34ed of artifact transform AarResourcesCompilerTransform
Could not isolate value com.android.build.gradle.internal.dependency.AarResourcesCompilerTransform$Parameters_Decorated@5a7d34ed of type AarResourcesCompilerTransform.Parameters
> Dependency verification failed for configuration ':app:detachedConfiguration2'
One artifact failed verification: aapt2-8.1.3-10154469-osx.jar (com.android.tools.build:aapt2:8.1.3-10154469) from repository Google
If the artifacts are trustworthy, you will need to update the gradle/verification-metadata.xml file. For more on how to do this, please refer to https://docs.gradle.org/8.4/userguide/dependency_verification.html#sec:troubleshooting-verification in the Gradle documentation.

@chenxiaolong
Copy link
Owner

Ah crap, that gradle behavior is kind of annoying. This is happening because I develop on Linux and when gradle/verification-metadata.xml gets generated, it only includes dependencies that are pulled in on Linux systems (which is everything besides aapt2, apparently).

I'm not sure how to fix this (if it's even possible with gradle), but there are two workarounds:

  • You can run python gradle/update_verification.py to redownload and regenerate the checksums and then run git diff to confirm that it only added aapt2-8.1.3-10154469-osx.jar for macOS and nothing else.

  • Or if you don't care about the checksum verification, you can just delete the gradle/verification-metadata.xml file.

@chenxiaolong chenxiaolong self-assigned this Jan 23, 2024
@chenxiaolong chenxiaolong added bug Bug in BCR itself bug/limitation elsewhere Bug/limitation in the ROM or another project and removed bug Bug in BCR itself labels Jan 23, 2024
@pakhranijatin97
Copy link
Author

pakhranijatin97 commented Jan 29, 2024

Extracted checksum for aapt2-8.1.3-10154469-osx.jar using command "shasum -a 512 filename/path" and added below lines in gradle/verification-metadata.xml on line 721 and project ran as expected :

<artifact name="aapt2-8.1.3-10154469-osx.jar">
<sha512 value="b47a61ad6d1fa9a5cdd61fbdb2e748219e857b26d548ae422b5f5894db01575cb1f1c33d5a08c8eb8dba50520823ded6d45daf647fe4402848ae73e5c743b83e" origin="Generated by Gradle"/>
</artifact>

chenxiaolong added a commit that referenced this issue Jan 29, 2024
By default, Gradle only downloads the jar for the host OS. This isn't
sufficient when folks trying to build BCR from source are running a
different OS than me.

Fixes: #491

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong
Copy link
Owner

This is fixed by #493 and should no longer be a problem with future dependency updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants