I have followed the guide on https://github.com/golang/go/wiki/Mobile using the SDK applications and generating bindings method. Everything seemed fine. I installed go mobile and all the examples. Then, when I imported the $GOPATH/src/golang.org/x/mobile/example/bind/android/hello/build.gradle file like the guide said I got the following error message:
Error:SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
In the guide it didn’t mention anything about this. I tried changing the sdk.dir location to where the file was but it didn’t work, it just changed back.