Hi Dan, The gomobile reverse mode is very experimental, much more so than regular gomobile bindings. When in trouble, you'll probably have most luck going back to a working state and then add imports and usages of the reverse packages one at a time.
Also, while the reverse bindings can be useful to access Java/Android APIs easily from Go, I don't think it's realistic to use the reverse bindings to create an Androi app in (close to) 100% Go. The fundamental road block I found was keeping track of references between Java and Go, making sure no reference cycles persisted. And even if you succeeded, there's still iOS. I'm currently researching ways to create the UI natively in Go; I'm particularly interested in the way Flutter is designed. - elias On Monday, June 26, 2017 at 9:29:45 AM UTC+2, Dan Ballard wrote: > > So one thing slowing me down a bit is that there don't seem to be doc for > gobind reverse stuff, I'm just using AndroidStudio and the gobind gradle > plugin to call it. I'm not sure how to invoke it manually to try and debug > it easier, and it seems the documentation for > https://godoc.org/golang.org/x/mobile/cmd/gobind > should be updated with invocation examples? > > On Saturday, June 24, 2017 at 7:05:50 AM UTC-7, Dan Ballard wrote: >> >> I am working on creating an android app entirely in go using the Java og >> bindings, as outlined in >> https://github.com/golang/mobile/tree/master/example/reverse >> >> I created a go project under my goroot and an android project in my >> ~/AndroidStuioProjects >> I seem to have the configs right but I seem to have run into a problem >> >> :app:gobindDebug >> 2017/06/23 18:10:03 failed to go install the generated Java wrappers: >> exit status 2: go: cannot find GOROOT directory: /usr/local/go >> >> FAILED >> >> FAILURE: Build failed with an exception. >> >> * What went wrong: >> Execution failed for task ':app:gobindDebug'. >> > Process 'command '/home/user/src/go/bin/gobind'' finished with non-zero >> exit value 1 >> >> >> >> Which as far as I can tell if caused by >> https://github.com/golang/go/issues/18209 [x/mobile: gobind ignores >> $GOROOT] >> >> >> The only options I see are >> 1) put in a very hacky symlink >> 2) actually look at solving the bug >> >> Anyone else see an option I'm missing? >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.