Can not run the application (AAPT verification error on Mac)
Steps to reproduce:
- clone project from repo
- simply try to run the application
This is the same error that happened in this ticket: #2332 (closed) But now it happens on newer version of Gradle, and old resolution from that issue doesn't help.
Can you explain how to generate SHA value for appt2 on Mac device?
What I have in verification-metadata.xml
<component group="com.android.tools.build" name="aapt2" version="7.2.2-7984345"> <artifact name="aapt2-7.2.2-7984345-linux.jar"> <sha256 value="04ab4ae5fee5c69d1875053800518bf77def8c4032910d5188aa43c1f737da82" origin="Generated by Gradle"/> </artifact> <artifact name="aapt2-7.2.2-7984345-windows.jar"> <sha256 value="40d46913757ee6ed94f80b4d201cbd769e78d456bc7bebddf617df0e69fa31b0" origin="Generated by Gradle"/> </artifact> </component>
Error I get:
Dependency verification failed for configuration ':app:detachedConfiguration1' One artifact failed verification: aapt2-7.2.2-7984345-osx.jar (com.android.tools.build:aapt2:7.2.2-7984345) from repository Google
Clearing caches or running ./gradlew --write-verification-metadata pgp,sha256 doesn't help