bepass-org / oblivion

Unofficial warp client for android
2.96k stars 419 forks source link

Issue Encountered While Building Go Libraries #99

Closed hosseinghanbarigit closed 2 months ago

hosseinghanbarigit commented 3 months ago

When running the final command to import necessary libs, I encountered the following issue. I would appreciate it if you could guide me.

C:\Users\<USERNAME>\AppData\Local\Temp\go-build985011904\b001\exe\gomobile.exe: C:\Users\<USERNAME>\go\bin\gobind.exe -lang=go,java -outdir=C:\Users\<USERNAME>\AppData\Local\Temp\gomobile-work-25645764 .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
DanielcoderX commented 2 months ago
go run golang.org/x/mobile/cmd/gomobile init
go run golang.org/x/mobile/cmd/gomobile bind -ldflags="-w -s" -target=android -androidapi=21 -o=tun2socks.aar .

Did you run these commands as well? Please notice that you have to use go version 1.20 ~ 1.20.13

hosseinghanbarigit commented 2 months ago

@DanielcoderX

Yes, I have written the commands correctly as shown in the image below. The version of GO is also 20. Screenshot

DanielcoderX commented 2 months ago

It may seem ridiculous but the problem is with your shell(mostly UNICODE issues related to terminal font)😂 try using like this (add double quotation mark)

$ gomobile bind -ldflags="-w -s" -target=android -androidapi=21 -o="tun2socks.aar" .

hosseinghanbarigit commented 2 months ago

It may seem ridiculous but the problem is with your shell(mostly UNICODE issues related to terminal font)😂 try using like this (add double quotation mark)

$ gomobile bind -ldflags="-w -s" -target=android -androidapi=21 -o="tun2socks.aar" .

Thank you! It turns out the problem was something I hadn't paid attention to, and it's quite ridiculous! 😂