Suggestion from https://github.com/golang/go/issues/23307#issuecomment-368162189 I've manually verified in Android Studio that removing the clean task does fix the issue reported in golang/go#25290. Fixes golang/go#25290. Fixes golang/go#23307. Change-Id: Ic1a8c240fc8e4c4aaf59977fd559dd221ff605b1 Reviewed-on: https://go-review.googlesource.com/112455 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
gobindPlugin invokes gomobile bind command on the specified package.
Usage
build.gradle:
plugins { id "org.golang.mobile.bind" version "0.2.12" } gobind { // Package to bind. Separate multiple packages with spaces. pkg="github.com/someone/somepackage" // GOPATH GOPATH="/home/gopher" // Optional list of architectures. Defaults to all supported architectures. GOARCH="arm amd64" // Absolute path to the gomobile binary. Optional. GOMOBILE="/mypath/bin/gomobile" // Absolute path to the gobind binary. Optional. GOBIND="/mypath/bin/gobind" // Absolute path to the go binary. Optional. GO="/usr/local/go/bin/go" // Pass extra parameters to command line. Optional. GOMOBILEFLAGS="-javapkg my.java.package" }
For details: https://plugins.gradle.org/plugin/org.golang.mobile.bind
TODO
- Find the stale aar file (how?)