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
Please answer these questions before submitting your issue. Thanks!
Hey, i hit a nasty regression bug.
I fixed it by removing the offending func call. See below.
What version of Go are you using (
You say somethings fails, but what is the error message?
If the error is an unexpected crash and you'd like me to investigate further, please try to make a stand alone reproducer I can run (with gradle). One way is to modify the gomobile "bind" example to exercise the problematic code.
just gomobile build from root.
then adjust the build.gradle (Module:logpackermobilesdk)
that shoudl then build. But you wont get an .apk, because i cant work out the correct code to instantiate the code at the android level now. Things have changed a few bit it seems.
Anyway have a look
The 2nd thing i want to remind about is the OLD code regression bug
This used to work for gomobile, and then broke recently, and i guess it will break lots of others..
Let me knwo if i can help...
in android studio
on build > APK, you get error message
Those errors are caused by a recent change to gomobile that moves the generated classes out of the main package class. Replace
and remember to import go.logpackermobilesdk.Client and go.logpackermobilesdk.Message.
This is an unfortunate backwards incompatible change, but not a bug.
thank you.. Now all works.
I prefer the new structure of the Android Java code... Its much more intuitive. big thankyou...
The 2nd error message was related to the first. Property Accessors in golang were clashing with the ones you generate in Java.