Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
x/mobile: gobind Gradle plugin not working with Android Studio 3.0 #23307
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
Same problem here.
My current workaround is to build the .aar file manually with
You can test it with bind/hello example. Delete the "hello" folder with its gradle file from the android project first, then build the hello.aar manually, in the original location of the hello.go package, import the .aar into the Android Studio project, and make the project dependent on the newly added module.
After a bunch of blind poking and prodding in GobindPlugin.groovy, I have something that works. I don't know if it's the right way to fix this bug, but I am able to sync and build my project again.
Specifically, I moved the 'clean task':
from the GobindPlugin.apply method to BindTask.run method.
To anyone who is more knowledgeable about Gradle plugins, is this is a reasonable way to fix the issue?
Here's a diff for reference: