Skip to content

Commit 876c665

Browse files
larryliu0820facebook-github-bot
authored andcommitted
Update xnnpack_README.md adding warning for unsupported ndk version (#5854)
Summary: As titled Pull Request resolved: #5854 Reviewed By: helunwencser Differential Revision: D63860280 Pulled By: larryliu0820 fbshipit-source-id: 2e506218baf2ac824ad0e467bd7c70a69a4c8ede
1 parent 2584e72 commit 876c665

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ Phone verified: OnePlus 12, OnePlus 9 Pro. Samsung S23 (Llama only), Samsung S24
1616

1717
## Prerequisites
1818
* Install [Java 17 JDK](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html).
19-
* Install the [Android SDK API Level 34](https://developer.android.com/about/versions/15/setup-sdk) and [Android NDK 26.3.11579264](https://developer.android.com/studio/projects/install-ndk).
19+
* Install the [Android SDK API Level 34](https://developer.android.com/about/versions/15/setup-sdk) and [Android NDK 26.3.11579264](https://developer.android.com/studio/projects/install-ndk). **WARNING** NDK r27 will cause issues like:
20+
```
21+
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZTVNSt6__ndk114basic_ifstreamIcNS_11char_traitsIcEEEE" referenced by "/data/app/~~F5IwquaXUZPdLpSEYA-JGA==/com.example.executorchllamademo-FSyx80gEhsQCsxz7hvS2Ew==/lib/arm64/libexecutorch.so"...
22+
```
23+
Please downgrade to version 26.3.11579264.
2024
* If you have Android Studio set up, you can install them with
2125
* Android Studio Settings -> Language & Frameworks -> Android SDK -> SDK Platforms -> Check the row with API Level 34.
2226
* Android Studio Settings -> Language & Frameworks -> Android SDK -> SDK Tools -> Check NDK (Side by side) row.

0 commit comments

Comments
 (0)