-
Notifications
You must be signed in to change notification settings - Fork 390
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
Universal APK built with ApksBuildCommand includes "shadow.bundletool" in Metadata #94
Comments
Thanks for reporting the issue. This seems related to the Relocating packages option from I would have expected the shadowJar plugin to only modify the imports, but it seems not to... |
We experience a similar issue while using The workaround is to manually add the correct meta-data to the AndroidManifest.xml:
That makes UPD: looks like the issue is fixed in the latest bundletool but still present if the app is deployed to a device using Android Studio. |
This will be fixed in the next release of bundletool and in the subsequent release of Studio canary. |
Does this same issue affect all dynamic module deployment to device through Android Studio? I'm on AS 3.5 and when I run the app from inside Android Studio and have all our dynamic modules checked in the Run configuration, the When I use bundletool 0.11.0 to build and extract the APK, it works and |
When you install from Studio, do you select to install "APK from app bundle" instead of "Default APK"? |
I did some further testing, and it appears when deploying from AS (using APK from app bundle), I need to kill the app and re-launch it in order for Edit: I'm happy to file a bug on AGP if this seems like something specific to AS. Edit 2: Sorry actually I forgot that I locally changed the module to Edit 3: Ok so when it's an Apologies for all the thrash. :) |
Thank you for the detailed description. |
Oh also, we don't get notifications for edits, so consider making a new comment for each new information! I almost missed the very valuable information from the edits. Thanks :) |
Now fixed in 0.12.0. |
Describe the bug
I have the following gradle code to generate a universal apk given an app bundle using the following artifact: https://mvnrepository.com/artifact/com.android.tools.build/bundletool/0.9.0 (the same used by AGP 3.5).
However, when I generate an app bundle with dynamic feature modules,
SplitInstallManager
cannot find them.If I run the equivalent command using
java -jar bundletool-0.9.0-all.jar
,SplitInstallManager
detects the fused modules.I did a diff on the two APKs and found the following difference in the
AndroidManifest.xml
files.Working APK:
Broken APK:
Bundletool version(s) affected
Version: 0.9.0
To Reproduce
Generate an apks file with both methods, using
bundletool
from command line and using theBuildApksCommand
from the published jar.Expected behavior
The app bundle generated using
ApksBuildCommand
A clear and concise description of what you expected to happen.
Known workaround
Execute command using cli with the fat jar.
Environment:
Mac
The text was updated successfully, but these errors were encountered: