-
Notifications
You must be signed in to change notification settings - Fork 3.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
Remove build_tools_version and api_level #384
Remove build_tools_version and api_level #384
Conversation
Remove `build_tools_version` and `api_level` to let `android_sdk_repository` automatically select the latest installed version. One of the fixes for bazelbuild/bazel#13409 (comment)
This broke the tests on Bazel CI: https://buildkite.com/bazel/android-testing/builds/1283 Any idea how we could fix this? |
Well, could be that removing |
I wonder if that's a missing dependency in our image. 🤔 Let me try manually running that file.. |
Yeah, I didn't read the error closely enough, I thought it was complaining about a .so file in the apk, but it looks like this is the zipalign tool itself not being able to run |
Seems to work:
It's interesting that it is dynamically linked against a bundled copy of libc++.so. Maybe this doesn't work when Bazel runs the tool for some reason? However for build-tools 28.0.2 it looks the same (but maybe when using build-tools 28.0.2, our rules don't call zipalign? Sorry, I don't know the details of our Android support, just guessing here..). |
Yeah, we have a wrapper that's supposed to enable the tools to find their lib directories: |
Alex and me debugged this a bit more directly in the Docker container that's used on Bazel CI. The problem is this:
I'll have to think about how to fix this a bit more tomorrow. How I switched the project to JDK 11:
|
I guess, in the worst case if I can't get the RBE stuff working, we might have to revert to enabling KVM support on our instances and running the emulator locally (at least temporarily). |
Remove
build_tools_version
andapi_level
to letandroid_sdk_repository
automatically select the latest installed version.One of the fixes for bazelbuild/bazel#13409 (comment)