github https://github.com/fanfq/shadowsocks-android
PREREQUISITES
JDK 1.8
SBT 0.13.0+
Go 1.4+
Android SDK
Build Tools 25+
Android Support Repository and Google Repository (see build.sbt for version)
Android NDK r12b+
BUILD
Set environment variable ANDROID_HOME to /path/to/android-sdk
Set environment variable ANDROID_NDK_HOME to /path/to/android-ndk
Set environment variable GOROOT_BOOTSTRAP to /path/to/go
Create your key following the instructions at https://developer.android.com/studio/publish/app-signing.html
Create local.properties from local.properties.example with your own key information
Invoke the building like this
git submodule update --init
# Build the App
sbt native-build clean android:package-release
git submodule update --init 这一步浪费较长的时间,甚至有点想放弃。丢那边放了2,3天后搞定了。
主要问题就是纠结在 git ss代理配置 问题,后来解决了。前提是已经在电脑上安装了ss代理。