mirror of
https://github.com/okhsunrog/vpnhide.git
synced 2026-04-28 14:44:43 +00:00
Real cause of the lsposed/lint NPE on CI: Gobley's RustAndroidTarget.ndkToolchainDir resolves the NDK by checking, in order, the explicit `ndkRoot` parameter, `<sdkRoot>/ndk/<latestVersion>`, then `$ANDROID_NDK_ROOT`. The CI image installs the NDK as a separate tree at /opt/android-ndk and exports `ANDROID_NDK_HOME`, not `ANDROID_NDK_ROOT` — so all three lookups return null and Gobley's `!!` produces a bare `NullPointerException` during `:app` configuration. Locally my shell exports `ANDROID_NDK_ROOT` (Android Studio convention), which is why the issue only surfaces in CI. Bake `ANDROID_NDK_ROOT` into the CI Dockerfile and export it inline in the lint / lsposed gradle steps so this PR's CI passes before the image rebuilds. Revert the prior `rustup target add x86_64-unknown-linux-gnu` and `--stacktrace` debug additions — that was a wrong-hypothesis workaround (the host target is already installed by `rustup-init`). |
||
|---|---|---|
| .. | ||
| ci | ||