bepass-org / oblivion

Unofficial warp client for android
3.68k stars 492 forks source link

no exported names in the package ".aar" #325

Open mhdi-khosravi opened 2 months ago

mhdi-khosravi commented 2 months ago

Hi. I tried to build tun2socks package but failed.

go version go version go1.22.0 windows/amd64

NDK 27.0.11902837

Gradle 8.6 Plugin 8.4.0

SDK 34.0.0

Commands in Android Studio Terminal: cd app\libs go run golang.org/x/mobile/cmd/gomobile init (till here executed with no error but in last command i got errors) go run golang.org/x/mobile/cmd/gomobile bind -ldflags="-w -s" -target=android -androidapi=21 -o=tun2socks.aar .

no exported names in the package ".aar" no exported names in the package ".aar" no exported names in the package ".aar" no exported names in the package ".aar"

exit status 1

i even change the folder of libs and use power shell but still same

PS H:\New folder\libs> go version go version go1.22.0 windows/amd64 PS H:\New folder\libs> go run golang.org/x/mobile/cmd/gomobile init

PS H:\New folder\libs> go run golang.org/x/mobile/cmd/gomobile bind -ldflags="-w -s" -target=android -androidapi=21 -o=tun2socks.aar .

C:\Users\Mhdi\AppData\Local\Temp\go-build2805889819\b001\exe\gomobile.exe: C:\Users\Mhdi\go\bin\gobind.exe -lang=go,java -outdir=C:\Users\Mhdi\AppData\Local\Temp\gomobile-work-2390169431 .aar tun2socks failed: exit status 1 no exported names in the package ".aar" no exported names in the package ".aar" no exported names in the package ".aar" no exported names in the package ".aar"

exit status 1 PS H:\New folder\libs>

erfansn commented 1 month ago

You must put output flag value inside Quotation mark:

go run golang.org/x/mobile/cmd/gomobile bind -ldflags="-w -s" -target=android -androidapi=21 -o="tun2socks.aar" .