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