Skip to content
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

Error run android test for unremovable dynamic feature module #208

Closed
yeuristic opened this issue Mar 18, 2021 · 2 comments
Closed

Error run android test for unremovable dynamic feature module #208

yeuristic opened this issue Mar 18, 2021 · 2 comments

Comments

@yeuristic
Copy link

Describe the bug
Error when makeApk for android test in dynamic feature that configured as unremovable
<dist:removable dist:value="false" />

Bundletool version(s) affected
Version: 1.0.0

Stacktrace
com.android.tools.build.bundletool.model.exceptions.InvalidCommandException: The APK Set archive does not contain the following modules: [dynamicfeature]

To Reproduce

  1. Create android project with a dynamic feature module
  2. Set dynamic feature module delivery to install-time and removable value = false
  3. Create an android test scenario for an activity in dynamic feature module
  4. Run the test: ./gradlew dynamicfeature:connectedDebugAndroidTest

or just checkout from here

Expected behavior
Android Test can be run successfully

Known workaround
Set dynamic feature module removable value to true. <dist:removable dist:value="true" />

Environment:
OS: macOS Mojave

Additional context
.

@ymakhno
Copy link

ymakhno commented Mar 30, 2021

Thank you for the sample project I was able to reproduce it.

This looks like Android Gradle Plugin issue, could you please report to them http://issuetracker.google.com/issues?q=componentid:192709.

@ymakhno
Copy link

ymakhno commented Aug 3, 2021

Fixed in 1.7.1

@ymakhno ymakhno closed this as completed Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants