branch is studio-main and I just follow this: https://android.googlesource.com/platform/tools/base/+/studio-main/build-system/from-the-command-line.md and I don't know why occur this error, thanks a lot!!! that's the log: $ sudo ./gradlew :publishAndroidGradleLocal Configuration cache is an incubating feature. Calculating task graph as no configuration cache is available for tasks: :publishAndroidGradleLocal > Configure project :apksig Using experimental hybrid build Loading: Loading: 0 packages loaded Loading: 0 packages loaded currently loading: tools/base Analyzing: target //tools/base:agp_artifacts_dir (1 packages loaded, 0 targets configured) Analyzing: target //tools/base:agp_artifacts_dir (13 packages loaded, 12 targets configured) Analyzing: target //tools/base:agp_artifacts_dir (18 packages loaded, 33 targets configured) Analyzing: target //tools/base:agp_artifacts_dir (28 packages loaded, 120 targets configured) Analyzing: target //tools/base:agp_artifacts_dir (29 packages loaded, 1627 targets configured) Analyzing: target //tools/base:agp_artifacts_dir (31 packages loaded, 3500 targets configured) Analyzing: target //tools/base:agp_artifacts_dir (31 packages loaded, 3537 targets configured) ERROR: Error fetching repository: java.io.IOException: No WORKSPACE file found in /root/.cache/bazel/_bazel_root/b999832bf0c9cb2d62af738baf434b8c/external/io_bazel_rules_kotlin INFO: Repository remote_java_tools_linux instantiated at: /DEFAULT.WORKSPACE.SUFFIX:223:6: in <toplevel> /root/.cache/bazel/_bazel_root/b999832bf0c9cb2d62af738baf434b8c/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe Repository rule http_archive defined at: /root/.cache/bazel/_bazel_root/b999832bf0c9cb2d62af738baf434b8c/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel> ERROR: /mnt/e/studio-main/tools/base/bazel/BUILD:9:13: //tools/base/bazel:utils depends on @io_bazel_rules_kotlin//src/main/protobuf:worker_protocol_java_proto in repository @io_bazel_rules_kotlin which failed to fetch. no such package '@io_bazel_rules_kotlin//src/main/protobuf': No WORKSPACE file found in /root/.cache/bazel/_bazel_root/b999832bf0c9cb2d62af738baf434b8c/external/io_bazel_rules_kotlin ERROR: Analysis of target '//tools/base:agp_artifacts_dir' failed; build aborted: Analysis failed INFO: Elapsed time: 10.583s INFO: 0 processes. FAILED: Build did NOT complete successfully (32 packages loaded, 4192 targets configured) ERROR: Build failed. Not running target FAILED: Build did NOT complete successfully (32 packages loaded, 4192 targets configured)
FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':base:uast:compileJava'. > Process 'command '/mnt/e/studio-main/tools/base/bazel/bazel'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 24s 14 actionable tasks: 1 executed, 13 up-to-date -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/838226a5-a83e-48a1-821d-0f5793a7a237n%40googlegroups.com.
