Skip to content

Commit 4411ab2

Browse files
authored
Update README.md
Add required ANDROID_HOME setup step for Bazel.
1 parent 4e9a7b1 commit 4411ab2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,21 @@ Select "Bazel Command" as Configuration type and add `//:testdpc` as
9595

9696
You can now run the project from inside Android Studio.
9797

98-
9998
## Building with Bazel
10099

101100
The repository includes a `build.sh` script to build the application. The required
102101
[setupdesign library](https://android.googlesource.com/platform/external/setupdesign/+/refs/heads/main)
103102
is now imported and patched dynamically using the command line utility `ed`. This needs to be
104103
available on the path to successfully build the project.
105104

105+
### `ANDROID_HOME` environment setup
106+
107+
Bazel requires that you set the `ANDROID_HOME` environment variable to the path of your Android SDK.
108+
As an example, you can add to your `.bashrc` on linux:
109+
```
110+
export ANDROID_HOME=<Path to the Android SDK>
111+
```
112+
106113
## Support
107114
108115
If you've found an error in this sample, please file an issue:

0 commit comments

Comments
 (0)