Title: android_libcpp_shared` 0.2.0 fails on NDK 28 for arm64-v8a · Issue #5 · NexusDynamic/android_libcpp_shared · GitHub
Open Graph Title: android_libcpp_shared` 0.2.0 fails on NDK 28 for arm64-v8a · Issue #5 · NexusDynamic/android_libcpp_shared
X Title: android_libcpp_shared` 0.2.0 fails on NDK 28 for arm64-v8a · Issue #5 · NexusDynamic/android_libcpp_shared
Description: android_libcpp_shared 0.2.0 fails on NDK 28 for arm64-v8a Package: package:android_libcpp_shared 0.2.0 Repo: dart-lang/native Flutter: 3.44.2 NDK: 28.2.13676358 Host: macOS with Apple Silicon M1 Pro Target ABI: arm64-v8a (Pixel 6a) Error...
Open Graph Description: android_libcpp_shared 0.2.0 fails on NDK 28 for arm64-v8a Package: package:android_libcpp_shared 0.2.0 Repo: dart-lang/native Flutter: 3.44.2 NDK: 28.2.13676358 Host: macOS with Apple Silicon M1 Pr...
X Description: android_libcpp_shared 0.2.0 fails on NDK 28 for arm64-v8a Package: package:android_libcpp_shared 0.2.0 Repo: dart-lang/native Flutter: 3.44.2 NDK: 28.2.13676358 Host: macOS with Apple Silicon M1 Pr...
Opengraph URL: https://github.com/NexusDynamic/android_libcpp_shared/issues/5
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"android_libcpp_shared` 0.2.0 fails on NDK 28 for arm64-v8a","articleBody":"**`android_libcpp_shared` 0.2.0 fails on NDK 28 for arm64-v8a**\n\n**Package:** `package:android_libcpp_shared` 0.2.0\n**Repo:** `dart-lang/native`\n**Flutter:** 3.44.2\n**NDK:** 28.2.13676358\n**Host:** macOS with Apple Silicon M1 Pro\n**Target ABI:** arm64-v8a (Pixel 6a)\n\n**Error:**\n```\nHook.build hook of package:android_libcpp_shared has invalid output\n- Code asset \"package:android_libcpp_shared/libc++_shared.so\" file\n (/Users/.../ndk/28.2.13676358/toolchains/llvm/prebuilt/darwin-x86_64//sysroot/usr/lib/aarch64-linux-android/libc++_shared.so)\n does not exist as a file.\n```\n\n**Root cause:**\n\nNDK 28 changed the layout for arm64. There are two issues:\n\n**1. Wrong path — missing API-level subdirectory.**\nThe package looks at:\n```\nsysroot/usr/lib/aarch64-linux-android/libc++_shared.so\n```\nBut in NDK 28 the file lives at:\n```\nsysroot/usr/lib/aarch64-linux-android/24/libc++.so\n```\n\n**2. Wrong filename.**\nFor arm64 in NDK 28 the library is named `libc++.so`, not `libc++_shared.so`.\n\n**Verification:**\n```bash\n# Top-level aarch64 directory — no libc++_shared.so\nls $NDK_HOME/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/\n# libc++_static.a libc++abi.a libc++experimental.a libc.a ...\n# No libc++_shared.so\n\n# API-level subdirectory — libc++.so present under a different name\nls $NDK_HOME/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/lib/aarch64-linux-android/24/\n# libc++.so libc.so libm.so libdl.so ...\n\n# Other ABIs still have libc++_shared.so at the top level (not affected)\nfind $NDK_HOME -name \"libc++_shared.so\"\n# arm-linux-androideabi, x86_64-linux-android, i686-linux-android, riscv64-linux-android\n# Missing: aarch64-linux-android\n```\n\n**Additional behaviour:**\nThe build succeeds on the first run because hook output is cached in `.dart_tool/hooks_runner/`. Subsequent builds (or after `flutter clean`) fail immediately because the cached file path is validated and the file does not exist. This makes the bug appear intermittent.","author":{"url":"https://github.com/chillbrodev","@type":"Person","name":"chillbrodev"},"datePublished":"2026-06-13T00:42:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/5/android_libcpp_shared/issues/5"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:85d37445-752d-65f9-0849-c2f5bf60f426 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5C6:313128:23F1B:30FAE:6A4D19FC |
| html-safe-nonce | a42d1ecec00b53bc609a6b968833579168f90774b831356ae1db2c1d925cbe9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUM2OjMxMzEyODoyM0YxQjozMEZBRTo2QTREMTlGQyIsInZpc2l0b3JfaWQiOiI4MzA2NTcwMTI3ODE1Mjg1MjQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | df32e792dc637e10d20d0f61f22b8ddab660916f4bf87a70cdbec058e154c2b7 |
| hovercard-subject-tag | issue:4653587095 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NexusDynamic/android_libcpp_shared/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f3714da5dec24d5ebf239835a6065e65ba7885a7619cea661152446848b99407/NexusDynamic/android_libcpp_shared/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f3714da5dec24d5ebf239835a6065e65ba7885a7619cea661152446848b99407/NexusDynamic/android_libcpp_shared/issues/5 |
| og:image:alt | android_libcpp_shared 0.2.0 fails on NDK 28 for arm64-v8a Package: package:android_libcpp_shared 0.2.0 Repo: dart-lang/native Flutter: 3.44.2 NDK: 28.2.13676358 Host: macOS with Apple Silicon M1 Pr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chillbrodev |
| hostname | github.com |
| expected-hostname | github.com |
| None | bcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c |
| turbo-cache-control | no-preview |
| go-import | github.com/NexusDynamic/android_libcpp_shared git https://github.com/NexusDynamic/android_libcpp_shared.git |
| octolytics-dimension-user_id | 215839682 |
| octolytics-dimension-user_login | NexusDynamic |
| octolytics-dimension-repository_id | 1184665524 |
| octolytics-dimension-repository_nwo | NexusDynamic/android_libcpp_shared |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1184665524 |
| octolytics-dimension-repository_network_root_nwo | NexusDynamic/android_libcpp_shared |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width