Open timcooijmans opened 2 years ago
cc @hyangah
There was a demo before ( https://github.com/golang/mobile/tree/37c5126484a7fd3b7987809e9f68f1ba4e7a5341/example/reverse), but it was build with gradle plugin,
It was removed because it couldn't have stable access to the xml layout in Android, but more often, we just want to call some Java methods (for some reasons, I have to do this, such as get android id in go)
Android Studio support language C , but not support Golang, IDEA support Golang, but not support C :(
So I don't want to use CGo(jni) to done it
I'm out of options now
I also need this, and was dishearted to see it ghosted.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Create a file in a module that uses reverse binding:
and run
gomobile bind
What did you expect to see?
A successful compile
What did you see instead?
A successful compile with the method ignored.