File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,13 +107,13 @@ Alternatively, you can install Android Studio.
107107To 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
113113For 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
119119Setting the output path ensures the shared object files can be found in target-specific directories under ` jniLibs` where the JNI can find them.
Original file line number Diff line number Diff line change @@ -705,13 +705,13 @@ Alternatively, you can install Android Studio.
705705To 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
711711For 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
717717Setting the output path ensures the shared object files can be found in target-specific directories under ` jniLibs ` where the JNI can find them.
You can’t perform that action at this time.
0 commit comments