This release is not compliant with the Google Play 64-bit requirement The following APKs or App Bundles are available to 64-bit devices, but they only have 32-bit native code: 3. site:stackoverflow.com

  1. Identify the architecture of the 32-bit libraries in your Go project.
file your_library.so
  1. Install the necessary 64-bit libraries.
sudo dpkg --add-architecture amd64
sudo apt-get update
sudo apt-get install libc6:amd64 libncurses5:amd64 libstdc++6:amd64
  1. Set the environment variable for 64-bit architecture.
export GOARCH=amd64
  1. Rebuild your Go project with the 64-bit architecture.
go build
  1. Verify the architecture of the generated binary.
file your_binary
  1. Check for any 32-bit dependencies using the readelf command.
readelf -h your_binary | grep Class
  1. If necessary, update or replace the 32-bit dependencies with their 64-bit equivalents.
sudo apt-get install lib32example-dev:amd64
  1. Rebuild the project again.
go build
  1. Verify that the binary is now compliant with the 64-bit requirement.
file your_binary
  1. Test the application to ensure it works as expected on 64-bit devices.
./your_binary