-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Wrong background splashscreen color when generating Android Bundle (.aab) instead of .apk #403
Comments
Ugh, tough question. Can you show the steps you are using to build the .aab bundle? (e.g., via Android Studio, CLI commands, cloud services, ...) |
Sure!
Then you can rename the built-apk.apks to zip and extract the apks. Thanks for your help! |
Based on the buildtool documentation, it seems that it already includes its own aapt2 version. I haven't found a way to pass options to that execution, but even if we find it, it won't solve my problem as is the Play Store the one who is executing buildtool :( Now I'm trying to find a way of specifing the color without being modified by aapt2. I'll let you know any findings. Thanks. |
Thanks a lot for your debugging. It's a shame that this issue still persists. I'll try to open an issue with bundle tool that the issue still persists. |
Ok let's get creative here: It seems we need to include the custom Of course you'll need to find the
|
Hi @timbru31, Thanks for taking a look to this :) Fortunately, I got a solution! The thing is that is not a bug itself. What is happening is that aapt2 takes the color value as an hex, and so it takes it as an Int (so removing the leading 0 makes sense) and not a String. The solution is as easy as forcing the value to be a string, so:
does the trick 🥳 *IMPORTANT: this value breaks iOS, so it should be only under android. Give it a try and may be it makes sense to update the documentation with this workaround. Thanks! |
Awesome, this is great news. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not stale, still needs an investigation. |
Hi there,
When generating my apk, the splashcreen color wasn't showing correctly. Then, following the FAQ, I added the --keep-raw-values option and everything worked fine.
The problem is when generating my release in a Bundle (.aab) format, in order to upload it to the Play Store, the final apk extracted from that bundle it doesn't seem to take into account the option added to build-extras.gradle.
Any suggestion?
Thanks for the great work
The text was updated successfully, but these errors were encountered: