在Windows上使用Golang开发Android应用吗?

huangapple go评论96阅读模式
英文:

Golang for Android on Windows?

问题

我还没有看到明确说明不能使用Windows的内容,但是所有的指南都涉及运行.sh文件。有人成功编译过任何类型的用于Android的Go代码吗,无论是库还是完整的本地活动?

英文:

I haven't read anything explicitly stating that you can't use Windows but everything that does walk you through what to do seems to involve running a .sh file. Has anybody had any luck compiling any kind of Go for Android, whether it be a library or a full native activity?

答案1

得分: 1

不,整个过程都与Linux相关(在Dockerfile中使用了FROM ubuntu:12.04)。

这意味着你需要在Windows上拥有一个符合Docker标准的环境(例如boot2docker),以便执行以下命令:

docker run -v $GOPATH/src:/src mobile /bin/bash -c 'cd /src/your/project && ./make.bash'
英文:

No, the all process is tied to Linux (FROM ubuntu:12.04 in the Dockerfile).

That means you would need to have on Windows a Docker-compliant environment (like a boot2docker) in order to launch the

docker run -v $GOPATH/src:/src mobile /bin/bash -c 'cd /src/your/project && ./make.bash'

huangapple
  • 本文由 发表于 2015年1月8日 10:40:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/27832119.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定