Skip to content

Commit ed718a8

Browse files
committed
Fix doc for Android build error in xnnpack_README.md
In scripts/build_android_library.sh, there's ``` ANDROID_HOME="${ANDROID_SDK:-/opt/android/sdk}" ./gradlew build ``` If ANDROID_SDK is not set, ANDROID_HOME will be /opt/android/sdk, which is wrong for Mac. Add `export ANDROID_SDK` instruction to avoid the build error if users have not exported it.
1 parent 5268b24 commit ed718a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/demo-apps/android/LlamaDemo/docs/delegates/xnnpack_README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ If you need to use other dependencies (like tokenizer), please build from the lo
183183
### Alternative 2: Command line
184184
Without Android Studio UI, we can run gradle directly to build the app. We need to set up the Android SDK path and invoke gradle.
185185
```
186+
export ANDROID_SDK=<path_to_android_sdk_home>
186187
export ANDROID_HOME=<path_to_android_sdk_home>
187188
pushd examples/demo-apps/android/LlamaDemo
188189
./gradlew :app:installDebug

0 commit comments

Comments
 (0)