-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Android manifest merger unable to merge manifests containing queries #14285
Comments
While we get the android tools version issue sorted, I was able to backport the queries feature into com.android.tools.build_manifest-merger_25.0.0.jar. I won't have time to patch this until the week of the 29th, but if you'd like to try this yourself:
|
@ahumesky any updates on this?
https://developer.android.com/guide/topics/manifest/uses-native-library-element |
I put up a PR with the manifest merger jar #14429 |
Robolectric upgrade is hard: it requires upgrading Espresso in order to work around robolectric/robolectric#7367 and robolectric/robolectric#6593. However, newer Espresso makes use of new manifest features that require upgrading Bazel: bazelbuild/bazel#14285. Because upgrading Kotlin is a precursor to the Bazel upgrade, a workaround for the single test that required the Robolectric upgrade (due to using a deprecated API from SDK 33 without being able to actually use SDK 33 in the test) is the best approach here until Robolectric can actually be upgraded in the future.
Description of the problem / feature request:
The Android manifest merger being used by the Bazel
android_tools
is unable to merge manifests that contain queries that have providers listed. This can be reproduced using the rolling releases and HEAD.The merge fails with the below exception:
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
This can be reproduced by including the latest version of https://developer.android.com/jetpack/androidx/releases/car-app, which has the following listed in it's manifest:
What operating system are you running Bazel on?
MacOS Big Sur
Have you found anything relevant by searching the web?
Support for queries got added in API 30 while the
android_tools
are still using v25.0.0.Any other information, logs, or outputs that you want to share?
The text was updated successfully, but these errors were encountered: