i have tried to cross compile go for android. but it fails with unrecognized command line option ‘-marm’
tar xvzf go1.4-bootstrap-20161024.tar.gz
mv go go1.4
tar xvzf go1.7.4.src.tar.gz
cd go1.4/src
./make.bash
cd $HOME/go/src
env GOROOT_BOOTSTRAP=$HOME/go1.4 ./make.bash
env GOOS=android GOARCH=arm GOARM=7 ./bootstrap.bash
But I think you’re going about things the wrong way. As @Tamas_Gulacsi said above, cross compilation to android is probably the fastest and easiest to use ask you don’t have to install or configure anything.
Ok, it looks like that script does not work when bootstrapping for android. This is because of a hack put in place a few years ago which tries to pretend linux and android are the same thing (they are not).
I recommend cross compiling from your linux machine to android; don’t bootstrap, just use go build