标签:target sdk lan install ide str href relative ted
You need to set the NDK path in gomobile init
using the -ndk
flag - if you follow these instructions, the path should be ~/Library/Android/sdk/ndk-bundle/
:
gomobile init -ndk ~/Library/Android/sdk/ndk-bundle/
Then you can compile the APK:
gomobile build -target=android <PATH>
The path should be relative to $GOPATH/src
. For example, if you install the basic example:
go get -d golang.org/x/mobile/example/basic
The build command should be:
gomobile build -target=android golang.org/x/mobile/example/basic
标签:target sdk lan install ide str href relative ted
原文地址:http://www.cnblogs.com/zzxap/p/7026305.html