-
Notifications
You must be signed in to change notification settings - Fork 339
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
Getting error in "bazel build testdpc" command #203
Comments
Getting errors while do from Android Studio Bazel Plugin As well ERROR: /gmfixcqj/external/bazel_tools/tools/android/BUILD:14:27: While resolving toolchains for target @@bazel_tools//tools/android:android_jar (7735e62): toolchain type @@bazel_tools//tools/android:sdk_toolchain_type resolved to target @@androidsdk//:error_message, but that target does not provide ToolchainInfo |
Thanks for reporting this. I see the same issue when working on a new machine that doesn't have a previous Bazel cache. It works on other machines where I usually compile this project with Bazel. This looks like a bazel issue, and I'll monitor bazelbuild/rules_android#298 |
Closing this as I cannot reproduce it with Bazel 7.1.0. |
OS: Windows 11 and Ubuntu 22.0 tried in both, getting same error
Bazel Version : bazel 7.0.2
ERROR: /z56psvzu/external/bazel_tools/tools/android/BUILD:248:12: in runtime_deps attribute of java_binary rule @@bazel_tools//tools/android:dexer: alias '//external:android/dx_jar_import' referring to filegroup rule '@@androidsdk//:dx_jar_import' is misplaced here (expected cc_binary, cc_library, genrule, genproto, java_import, java_library, java_proto_library, java_lite_proto_library, proto_library, sh_binary or sh_library) and '@@androidsdk//:dx_jar_import' does not have mandatory providers: 'CcInfo' or 'JavaInfo'. Since this rule was created by the macro 'java_binary', the error might have been caused by the macro implementation
ERROR: /z56psvzu/external/bazel_tools/tools/android/BUILD:248:12: Analysis of target '@@bazel_tools//tools/android:dexer' failed
ERROR: Analysis of target '//:testdpc' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.766s, Critical Path: 0.02s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
The text was updated successfully, but these errors were encountered: