From 5d9870fbb3cbd686ebf95179b4047dc801313ace Mon Sep 17 00:00:00 2001 From: "jif2.zhang" Date: Tue, 15 Sep 2026 13:49:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(android):=20APK=20=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20VITE=5FAPI=5FBASE=20=E4=B8=BA=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E7=BB=9D=E5=AF=B9=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tauri Android 页面源是 http://tauri.localhost, 相对 /api 会打到内嵌 资源服务而非后端。明文 HTTP 已由 android-signing.sh 放行 (usesCleartextTraffic=true) --- .gitea/workflows/android-build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/android-build.yml b/.gitea/workflows/android-build.yml index 52a0741..280f17b 100644 --- a/.gitea/workflows/android-build.yml +++ b/.gitea/workflows/android-build.yml @@ -16,6 +16,9 @@ jobs: env: # 固定工具链版本, 便于 actions/cache 命中 NDK_VERSION: '27.2.12479018' + # APP (Tauri Android) 页面源是 http://tauri.localhost, 相对 /api 会打到内嵌资源服务, + # 必须用绝对地址指向后端。明文 HTTP 已由 android-signing.sh 放行 (usesCleartextTraffic=true)。 + VITE_API_BASE: 'http://bh.vps.honor3.com:3002' # libduckdb-sys 0.10.2 build.rs 同时添加 -stdlib=libc++ 和 -stdlib=libstdc++, # 在 clang 上两者都被支持, libstdc++ 覆盖 libc++ 成为生效选项, 但 NDK 不含 libstdc++ 头文件, # 导致 fatal error: 'string' file not found. 设置 CXXFLAGS 确保 -stdlib=libc++ 为最终生效值