“gomobile:没有设置 Android NDK路径.请通过安装AndroID SDK管理器或设置-ndk标志的ndk-bundle运行gomobile init.”
我已将NDK路径添加到系统变量$PATH,甚至手动安装了NDK,但仍然存在错误.
谢谢你的时间 !!解决方法 你需要使用-ndk标志在gomobile init中设置NDK路径 – 如果你按照 these instructions,路径应该是〜/ library / AndroID / sdk / ndk-bundle /:
gomobile init -ndk ~/library/AndroID/sdk/ndk-bundle/
然后你可以编译APK:
gomobile build -target=androID <PATH>
路径应该相对于$GOPATH / src.例如,如果您安装基本示例:
go get -d golang.org/x/mobile/example/basic
构建命令应该是:
gomobile build -target=androID golang.org/x/mobile/example/basic总结
以上是内存溢出为你收集整理的gomobile命令错误“没有设置android NDK路径”全部内容,希望文章能够帮你解决gomobile命令错误“没有设置android NDK路径”所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)