Skip to content

Commit 084326e

Browse files
kirklandsignpytorchbot
authored andcommitted
Fix link in using-executorch-building-from-source.md (#9756)
(cherry picked from commit 97bca05)
1 parent 8f16ab6 commit 084326e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/source/using-executorch-building-from-source.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,20 @@ adb push add.pte /data/local/tmp/executorch
231231
adb shell "/data/local/tmp/executorch/executor_runner --model_path /data/local/tmp/executorch/add.pte"
232232
```
233233

234+
#### Building AAR for app integration from source
235+
- Prerequisite: Android NDK from the previous section, and Android SDK (Android Studio is recommended).
236+
237+
Assuming Android NDK and SDK is available, run:
238+
```bash
239+
export ANDROID_ABIS=arm64-v8a
240+
export BUILD_AAR_DIR=aar-out
241+
mkdir -p $BUILD_AAR_DIR
242+
sh scripts/build_android_library.sh
243+
```
244+
245+
This script will build the AAR, which contains the Java API and its corresponding JNI library. Please see
246+
[this documentation](./using-executorch-android.md#using-aar-file) for usage.
247+
234248
### iOS
235249

236250
For iOS we'll build [frameworks](https://developer.apple.com/documentation/xcode/creating-a-multi-platform-binary-framework-bundle) instead of static libraries, that will also contain the public headers inside.

0 commit comments

Comments
 (0)