Skip to content

Commit fe7e4e2

Browse files
Update Android readme with specific Rust and NDK versions
1 parent 77f89af commit fe7e4e2

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

bdk-android/README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,23 @@ _Note that Kotlin version `1.6.10` or later is required to build the library._
5454
```shell
5555
git clone https://github.com/bitcoindevkit/bdk-ffi
5656
```
57-
2. Follow the "General" bdk-ffi ["Getting Started (Developer)"] instructions.
58-
3. If building on macOS install required intel and m1 jvm targets
57+
2. Follow the "General" bdk-ffi ["Getting Started (Developer)"] instructions.
58+
3. Install Rust (note that we are currently building using Rust 1.67.0):
59+
```shell
60+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
61+
rustup default 1.67.0
62+
```
5963
4. Install required targets
60-
```sh
61-
rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi
62-
```
64+
```sh
65+
rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi
66+
```
6367
5. Install Android SDK and Build-Tools for API level 30+
6468
6. Setup `$ANDROID_SDK_ROOT` and `$ANDROID_NDK_ROOT` path variables (which are required by the
65-
build tool), for example (NDK major version 21 is required):
66-
```shell
67-
export ANDROID_SDK_ROOT=~/Android/Sdk
68-
export ANDROID_NDK_ROOT=$ANDROID_SDK_ROOT/ndk/21.<NDK_VERSION>
69-
```
69+
build tool), for example (note that currently, NDK version 21.4.7075529 is required):
70+
```shell
71+
export ANDROID_SDK_ROOT=~/Android/Sdk
72+
export ANDROID_NDK_ROOT=$ANDROID_SDK_ROOT/ndk/21.4.7075529
73+
```
7074
7. Build kotlin bindings
7175
```sh
7276
# build Android library

0 commit comments

Comments
 (0)