New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/mobile/bind/java: fatal error: jni.h: No such file or directory #58426
Comments
@hyangah can you give this a look? It has a real "this could be a lot of things" look to it. |
Is it possible to post the log when running gomobile bind with |
|
had the same issue for me the environment variable in PATH =>
|
had the same issue with go 1.20.1, while it succeeded with go 1.19.6. |
Thank you @leo-lox |
When encountering the same problem, gomobile init does not solve the problem. |
finally solved by upgrade golang.org/x/mobile to latest version. |
After doing a git bisect, this seems to happen when using go 1.20 with a version of gomobile that's missing golang/mobile@406ed3a. Relevant bug report: #56292. (For folks who are using the gomobile version distributed in the Fedora repositories, I created a bug report to get that updated at: https://bugzilla.redhat.com/show_bug.cgi?id=2209147) |
icymi: |
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?
Binding Go Mobile project with following command:
What did you expect to see?
On Go version 1.19.5 and lower this works.
What did you see instead?
The text was updated successfully, but these errors were encountered: