From 543bee6d26eb9320a7c697e1ea49267e0481fbea Mon Sep 17 00:00:00 2001 From: hailin Date: Thu, 1 Jan 2026 00:14:52 -0800 Subject: [PATCH] fix(android): add -androidapi 21 flag to gomobile bind MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This ensures compatibility with modern NDK versions that don't support older Android API levels. API 21 (Android 5.0) is the minimum supported by current NDK versions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../mpc-system/services/service-party-android/build-apk.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/mpc-system/services/service-party-android/build-apk.bat b/backend/mpc-system/services/service-party-android/build-apk.bat index 44c0b40b..aea6ab74 100644 --- a/backend/mpc-system/services/service-party-android/build-apk.bat +++ b/backend/mpc-system/services/service-party-android/build-apk.bat @@ -154,7 +154,8 @@ if not exist "app\libs\tsslib.aar" ( ) :: Build the AAR (use full path to gomobile) - "!GOBIN_DIR!\gomobile.exe" bind -target=android -o "..\app\libs\tsslib.aar" . + :: Use -androidapi 21 to ensure compatibility with modern NDK + "!GOBIN_DIR!\gomobile.exe" bind -target=android -androidapi 21 -o "..\app\libs\tsslib.aar" . if !errorlevel! neq 0 ( echo [ERROR] gomobile bind failed! popd