╭─apanda at 熊凯的MacBook Pro in ~ using ‹› 18-04-04 - 11:07:02 ╰─○ go Go is a tool for managing Go source code.
Usage:
go command [arguments]
The commands are:
build compile packages and dependencies clean remove object files and cached files doc show documentation for package or symbol env print Go environment information bug start a bug report fix update packages to use new APIs fmt gofmt (reformat) package sources generate generate Go files by processing source get download and install packages and dependencies install compile and install packages and dependencies list list packages run compile and run Go program testtest packages tool run specified go tool version print Go version vet report likely mistakes in packages
Use "go help [command]"for more information about a command. ...
╭─apanda at xx的MacBook Pro in ~ using ‹› 18-04-04 - 11:08:23 ╰─○ gomobile Gomobile is a tool for building and running mobile apps written in Go.
To install:
$ go get golang.org/x/mobile/cmd/gomobile $ gomobile init
At least Go 1.7 is required. For detailed instructions, see https://golang.org/wiki/Mobile.
Usage:
gomobile command [arguments]
Commands:
bind build a library for Android and iOS build compile android APK and iOS app clean remove object files and cached gomobile files init install mobile compiler toolchain install compile android APK and install on device version print version
Use 'gomobile help [command]'for more information about that command.
1、2 配置Android 开发环境
sdk路径到环境变量,提前下载好ndk,存放在指定的目录(SDK下)。
命令行输入adb提示参数, 即表明配置成功
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
╭─apanda at xx的MacBook Pro in ~ using ‹› 18-04-04 - 10:05:40 ╰─○ adb Android Debug Bridge version 1.0.39 Version 0.0.1-4500957 Installed as /usr/local/bin/adb
global options: -a listen on all network interfaces, not just localhost -d use USB device (error if multiple devices connected) -e use TCP/IP device (error if multiple TCP/IP devices available) -s SERIAL use device with given serial (overrides $ANDROID_SERIAL) -t ID use device with given transport id -H name of adb server host [default=localhost] -P port of adb server [default=5037] -L SOCKET listen on given socket for adb server [default=tcp:localhost:5037] ...