Autobuild ignores default build variant setting for Android projects
Open
question
- Dominant language
- CodeQL
- Stars
- 10.1k
- Forks
- 2.1k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 141
Description
CodeQL autobuild apparently always tries to build the alphabetically earliest build variant for an Android project, ignoring alternate default build variant settings specified in `build.gradle`:
- https://issuetracker.google.com/issues/36988145
- https://stackoverflow.com/questions/52072162/how-to-change-android-studios-default-build-flavor
For example, my project [SMS Import / Export](https://github.com/tmo1/sms-ie) has four build variants, and the default is set to `standardDebug`. Android Studio respects this, but CodeQL autobuild still tries to build `legacyDebug`.
Contributor guide
Assessment
This issue has not been assessed yet.