docs(android): 修正工具链记录(降Go保pin→SagerNet gomobile fork+5层环境修复)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-06-22 20:05:50 +08:00
parent 126c06833d
commit c1fddcdf99
2 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -121,8 +121,8 @@
<p>做「L1 + 引导 L3」的组合——<code>setKillSwitch(on)</code><code>strict_route</code>(与 Windows 桌面统一)+ 在 UI 诚实标注「彻底防泄漏需到系统设置开 Always-on」,并提供跳转引导。<b>不假装 app 内能做到真 KillSwitch。</b> 背景与分级见 <a href="killswitch-design.html">KillSwitch 设计知识库</a></p>
</div>
<div class="card root">
<h3>② 工具链</h3>
<p>默认<b>降 Go 到 1.24.3、保 gomobile pin</b>,贴 sing-box 官方 SFA 验证组合;<b>不升 pin</b>。(本机现为 Go 1.26.1gomobile pin 是 2024-06 旧版,新 Go + 旧 gomobile 可能 <code>gomobile bind</code> 失败。)</p>
<h3>② 工具链(构建后修正)</h3>
<p>原定「降 Go 保 pin」——但实测 pin 失效,真实情况:用 <code>golang.org/dl/go1.24.3</code> 当启动器(go.mod 为 <code>go 1.24.7</code>,自动切 1.24.7 编译);gomobile 改用<b>官方 SagerNet fork <code>github.com/sagernet/gomobile@v0.1.12</code></b>(非上游,对照 sing-box go.mod 确认);bind 加 <code>-checklinkname=0</code> + tags <code>badlinkname,tfogo_checklinkname0</code>JDK 用 Android Studio JBR;国内 <code>GOPROXY=goproxy.cn</code>。Android 栈升 <b>Gradle 8.7 + AGP 8.6 + Kotlin 2.2.0 + 声明式插件</b>。详见实现计划。</p>
</div>
<div class="card root">
<h3>③ 测试基线(里程碑 C</h3>