github https://github.com/fanfq/shadowsocks-android
quote
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
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
This step of git submodule update --init wastes a long time, and I even want to give up. I left it there for 2 or 3 days and it was done.
The main problem is tangled in the git ss proxy configuration problem, which was later solved. The premise is that the ss agent has been installed on the computer.