diff --git a/docs-template/EXAMPLE_README.md.tpl b/docs-template/EXAMPLE_README.md.tpl index 7d8fa20f39..c1fbfc08eb 100644 --- a/docs-template/EXAMPLE_README.md.tpl +++ b/docs-template/EXAMPLE_README.md.tpl @@ -106,13 +106,13 @@ Alternatively, you can install Android Studio. To build an Android app, you first need to build shared object files for the target architecture with `cargo-ndk`: ```sh -cargo ndk -t build -o /app/src/main/jniLibs +cargo ndk -t -o /app/src/main/jniLibs build ``` For example, to compile to a 64-bit ARM platform: ```sh -cargo ndk -t arm64-v8a build -o android_example/app/src/main/jniLibs +cargo ndk -t arm64-v8a -o android_example/app/src/main/jniLibs build ``` Setting the output path ensures the shared object files can be found in target-specific directories under `jniLibs` where the JNI can find them. diff --git a/examples/README.md b/examples/README.md index e8bbb36e45..9847a69508 100644 --- a/examples/README.md +++ b/examples/README.md @@ -561,13 +561,13 @@ Alternatively, you can install Android Studio. To build an Android app, you first need to build shared object files for the target architecture with `cargo-ndk`: ```sh -cargo ndk -t build -o /app/src/main/jniLibs +cargo ndk -t -o /app/src/main/jniLibs build ``` For example, to compile to a 64-bit ARM platform: ```sh -cargo ndk -t arm64-v8a build -o android_example/app/src/main/jniLibs +cargo ndk -t arm64-v8a -o android_example/app/src/main/jniLibs build ``` Setting the output path ensures the shared object files can be found in target-specific directories under `jniLibs` where the JNI can find them.