Skip to content

Commit 0edc1b1

Browse files
committed
Updates EXAMPLE_README template
1 parent 0b1d5ad commit 0edc1b1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs-template/EXAMPLE_README.md.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ Alternatively, you can install Android Studio.
107107
To build an Android app, you first need to build shared object files for the target architecture with `cargo-ndk`:
108108

109109
```sh
110-
cargo ndk -t <target_name> -o <project_name>/app/src/main/jniLibs build
110+
cargo ndk -t <target_name> -P 26 -o <project_name>/app/src/main/jniLibs build
111111
```
112112

113113
For example, to compile to a 64-bit ARM platform:
114114

115115
```sh
116-
cargo ndk -t arm64-v8a -o android_example/app/src/main/jniLibs build
116+
cargo ndk -t arm64-v8a -P 26 -o android_example/app/src/main/jniLibs build
117117
```
118118

119119
Setting the output path ensures the shared object files can be found in target-specific directories under `jniLibs` where the JNI can find them.

examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,13 +705,13 @@ Alternatively, you can install Android Studio.
705705
To build an Android app, you first need to build shared object files for the target architecture with `cargo-ndk`:
706706

707707
```sh
708-
cargo ndk -t <target_name> -o <project_name>/app/src/main/jniLibs build
708+
cargo ndk -t <target_name> -P 26 -o <project_name>/app/src/main/jniLibs build
709709
```
710710

711711
For example, to compile to a 64-bit ARM platform:
712712

713713
```sh
714-
cargo ndk -t arm64-v8a -o android_example/app/src/main/jniLibs build
714+
cargo ndk -t arm64-v8a -P 26 -o android_example/app/src/main/jniLibs build
715715
```
716716

717717
Setting the output path ensures the shared object files can be found in target-specific directories under `jniLibs` where the JNI can find them.

0 commit comments

Comments
 (0)