edit: added ref to project for bitrise folks:
I have Android Lint and Build steps configured the same way:
- ProjectLocation: tools/some-android-project - APKPathPattern: - AppPathPattern: */build/outputs/apk/*.apk */build/outputs/bundle/*.aab - Variant: debug - Module: app:collector - BuildType: apk - Arguments: - CacheLevel: only_deps - DeployDir: /bitrise/deploy
This is printed by both the lint and build steps. Linter works fine, build step fails
Variants: Failed to find buildable variants, error: module not found: app:collector
Looking at the source code, I see:
Esentially the same, they use the same mechanics to determine appropriate task to execute for the appropriate task.
I double checked locally after a
git clean -fdx that I have assemble and lint tasks for the module as well. An excerpt from the output:
> gradlew tasks --all app:collector:lint app:collector:lintDebug app:collector:assembleDebug
I’m confused. Why do I get the error on assemble task but not on lint? What do I do to work around this issue?