tree: 7bd507336966da4a4d2135a3c01c0fe892576873 [search]
  1. java/
  2. .bazelrc
  3. .gitignore
  4. android_persistent_workers.bazelrc
  5. BUILD
  6. MODULE.bazel
  7. README.md
  8. WORKSPACE
  9. WORKSPACE.bzlmod
examples/basicapp/README.md

Basic Android app

Set ANDROID_HOME to an Android SDK, then from this directory run:

bazel build //java/com/basicapp:basic_app

This example supports both WORKSPACE and Bzlmod. The local_path_override in MODULE.bazel is only for rules_android presubmit; drop it when copying the file into your own repo and depend on a released version from the Bazel Central Registry instead (see the root README).

.bazelrc has the Java 17 and C++17 flags needed to build.