From 50def9362f481eaae5ab299ed9b0cb1c51a7b87d Mon Sep 17 00:00:00 2001 From: Revertron <105154+Revertron@users.noreply.github.com> Date: Mon, 9 Mar 2026 10:57:00 +0100 Subject: [PATCH] Update gomobile bind command for Android build (#1318) Latest gomobile/ndk for some reason default to API 16, and this leads to build error. --- contrib/mobile/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/mobile/build b/contrib/mobile/build index 9be9529b..cc731536 100755 --- a/contrib/mobile/build +++ b/contrib/mobile/build @@ -56,7 +56,7 @@ if [ $ANDROID ]; then echo "Building aar for Android" go get golang.org/x/mobile/bind gomobile bind \ - -target android -tags mobile -o yggdrasil.aar \ + -target android -androidapi 21 -tags mobile -o yggdrasil.aar \ -ldflags="$LDFLAGS $STRIP" -gcflags="$GCFLAGS" \ ./contrib/mobile ./src/config; fi