- JDK
- Android SDK , NDK
- Go
- gomobile
install java 17+ , android sdk 34 and ndk 26.2, go 1.22
# don`t forget to set path!go install golang.org/x/mobile/cmd/gomobile@latest
go install golang.org/x/mobile/cmd/gobind@latest
git clone [repo] && cd AndroidLibXrayLite
go get
gomobile init
go mod tidy -v
gomobile bind -v -androidapi 21 -ldflags='-s -w' ./
This version is different from the original version and has some customization for use in V2ray-Android. It has been tried to convert uri to json inside the library by using gvcgo/vpnparser module, plus Some changes for personalization