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: NDK r16 is incompatible #22766
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
I experienced (what I think is) the same bug as you describe.
Here's how I workarounded it:
I would create a PR, but "Unfortunately, the Go project doesn't use GitHub's Pull Requests" (from here), and the contribution guide is too long for a one line casual contribution, so in case this helps someone, here's the diff:
diff --git a/bind/java/seq_android.c.support b/bind/java/seq_android.c.support index fbc6d55..7c0f483 100644 --- a/bind/java/seq_android.c.support +++ b/bind/java/seq_android.c.support @@ -11,6 +11,7 @@ #include <jni.h> #include <stdint.h> #include <stdio.h> +#include <string.h> #include <unistd.h> #include <pthread.h> #include "seq.h"
OK so I had the same issue, and editing seq_android.c.support fixed it for me.
I see this has been merged - when can I expect this to make it onto my machine through a new version of... something?
I've just started using gomobile and am finding nothing but roadblocks - is gradle 4.4/android sdk 27/com.android.tools.build:gradle:3.0.1 supposed to work?
The bind example from the guide https://github.com/golang/go/wiki/Mobile is a complete mess with a current version of Android studio or the above items.
I guess it does teach you a lot about go and building stuff, but it doesn't exactly leave a good impression - the reason I went in search of go was compiling my native C++ library with boost and all on 5 platforms (windows, linux, android, ios, osx) is an absolute nightmare...
Surely I'm doing something wrong and go isn't this flakey??