In short
An Android app resolves its libraries through Gradle. A version catalog ( gradle/libs.versions.toml ) lists the versions you request , but Gradle's documentation says catalogs do not enforce them. The versions that actually ship are the resolved ones.
Gradle dependency locking records the resolved versions in gradle.lockfile . That file can be turned into a CycloneDX SBOM, and the Gradle documentation says lock files should be checked in to source control.
Locking is off by default, and the build script's own plugins have a separate lock file. Switch it on, commit the files, then generate one SBOM per release.
What the CRA asks for
Annex I, Part II, point (1) of Regulation (EU) 2024/2847 requires manufacturers to "identify and document vulnerabilities and components contained in products with digital elements, including by drawing up a software bill of materials in a commonly used and machine-readable format covering at the very least the top-level dependencies of the products".…