-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Autobuild ignores default build variant setting for Android projects #19056
Comments
Hi @tmo1 Thanks for your question. We will investigate this and follow up with an update. |
Hi @tmo1 Could you share the logs created in the database directory of the project that isn't build correctly so we can further investigate? |
I assume this is what you want - please let me know if there's anything else I should provide. |
CodeQL autobuild simply runs |
As per the Google Issue Tracker and Stack Overflow links in my original post, Android Studio can use stanzas like |
Okay - thank you! |
Configure CodeQL to use manual build and specify the StandardDebug build variant, since CodeQL autobuild tries to build the the LegacyDebug variant (and fails due to the 64K reference limit). See: github/codeql#19056
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
:For example, my project SMS Import / Export has four build variants, and the default is set to
standardDebug
. Android Studio respects this, but CodeQL autobuild still tries to buildlegacyDebug
.The text was updated successfully, but these errors were encountered: