From 084326e86c3b574f1a01198709294eecbde948b6 Mon Sep 17 00:00:00 2001 From: Hansong <107070759+kirklandsign@users.noreply.github.com> Date: Mon, 31 Mar 2025 11:45:55 -0700 Subject: [PATCH] Fix link in using-executorch-building-from-source.md (#9756) (cherry picked from commit 97bca0547a224e2df15f823b1d7966e8b7546b70) --- .../using-executorch-building-from-source.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/source/using-executorch-building-from-source.md b/docs/source/using-executorch-building-from-source.md index 093e8e33866..6c73b616643 100644 --- a/docs/source/using-executorch-building-from-source.md +++ b/docs/source/using-executorch-building-from-source.md @@ -231,6 +231,20 @@ adb push add.pte /data/local/tmp/executorch adb shell "/data/local/tmp/executorch/executor_runner --model_path /data/local/tmp/executorch/add.pte" ``` +#### Building AAR for app integration from source +- Prerequisite: Android NDK from the previous section, and Android SDK (Android Studio is recommended). + +Assuming Android NDK and SDK is available, run: +```bash +export ANDROID_ABIS=arm64-v8a +export BUILD_AAR_DIR=aar-out +mkdir -p $BUILD_AAR_DIR +sh scripts/build_android_library.sh +``` + +This script will build the AAR, which contains the Java API and its corresponding JNI library. Please see +[this documentation](./using-executorch-android.md#using-aar-file) for usage. + ### iOS 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.