You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building Android Tools from the tip of Bazel 3.3.0 branch an error is thrown in Desugar worker log saying: Error parsing command line: Unrecognized option: --persistent_worker
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Build Android tools from source and try to build Android binary target using them
build your app and supply a flag to use the locally built android tools ./bazelw build --override_repository=android_tools=/tmp/bazel_android_tools //apps/myApp:app
Any other information, logs, or outputs that you want to share?
ERROR: /Users/sachin/PersonalProjects/samples-bazel-android/app/src/main/java/com/xachin/playground/BUILD.bazel:3:19: Desugaring app/src/main/java/com/xachin/playground/playground-app_kt.jar for Android failed: Worker process did not return a WorkResponse:
---8<---8<--- Start of log, file at /private/var/tmp/_bazel_sachin/6af8cdc15b57945be280298fb5d977c4/bazel-workers/worker-2-Desugar.log ---8<---8<---
Error parsing command line: Unrecognized option: --persistent_worker
Try --help.
---8<---8<--- End of log ---8<---8<---
Target //app:app failed to build
Description of the problem / feature request:
When building Android Tools from the tip of Bazel 3.3.0 branch an error is thrown in Desugar worker log saying:
Error parsing command line: Unrecognized option: --persistent_workerBugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Build Android tools from source and try to build Android binary target using them
bazel build //src:bazel-dev //tools/android/runtime_deps:android_toolsmkdir -p /tmp/bazel_android_toolstar -xzvf bazel-bin/tools/android/runtime_deps/android_tools.tar.gz -C /tmp/bazel_android_tools./bazelw build --override_repository=android_tools=/tmp/bazel_android_tools //apps/myApp:appAlso tried doing the same steps but with at SHA f3d1683 from here:
f3d1683#diff-6f653881793ed1c14a8c9d92a49705b1
Also with no luck, I get the same error.
What operating system are you running Bazel on?
Linux/Mac
What's the output of
bazel info release?3.3.0
Have you found anything relevant by searching the web?
Any other information, logs, or outputs that you want to share?