Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/mobile: Getting error in building GO using "org.golang.mobile.bind" plugin #13251
But, getting bellow error:
FAILURE: Build failed with an exception.
What went wrong:
No signature of method: build_4s3bi4u0rg0mg10bktcmg7ughp$_run_closure1.id() is applicable for argument types: (java.lang.String) values: [org.golang.mobile.bind]
Possible solutions: is(java.lang.Object), is(java.lang.Object), find(), find(), find(groovy.lang.Closure), find(groovy.lang.Closure)
/* GOPATH where the Go package is; check
/* Absolute path to the go binary */
Please help me to resolve this issue
I got above issue resolved, the issue was because of old gradle. I update the gradle to 2.4(from 1.12).
Please help me to resolve this issue.
In the snippet you posted you are using version 0.2.1 of the gradle plugin. The current version is 0.2.3. Please try that. Also note there is a GOMOBILE parameter to set. See the README.md in https://github.com/golang/mobile/tree/master/misc/androidstudio