[GH-ISSUE #5298] Cannot build frp v0.68.1 for Android #4086

Open
opened 2026-05-05 14:35:09 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @donmor on GitHub (Apr 28, 2026).
Original GitHub issue: https://github.com/fatedier/frp/issues/5298

Bug Description

I'm building frp binaries for Android and found v0.68.1 is not able to be built, prompting github.com/wlynxg/anet: invalid reference to net.zoneCache

v0.68.0 has no problem. Could be a dependency issue.

Probably related: wlynxg/anet#11 , golang/go#68082

frpc Version

0.68.1

frps Version

0.68.1

System Architecture

android/arm64, android/amd64

Configurations

https://github.com/donmor/DroidFRPD/blob/master/.github/workflows/release.yml
Actual command:

go build -trimpath -ldflags '-s -w -buidid=' -tags frpc -o ../app/src/main/jniLibs/arm64-v8a/libfrpc_0_68_1.so ./cmd/frpc
                                                   ^^^^                            ^^^^^^^^^    ^^^^ ^^^^^^          ^^^^ 
                                                   |or frps                        |or x86_64   |or frps  |version   |or frps

Built with Android toolchain
CGO_ENABLED=1
GOOS=android
GOARCH=[arm64, amd64]

Logs

No response

Steps to reproduce

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @donmor on GitHub (Apr 28, 2026). Original GitHub issue: https://github.com/fatedier/frp/issues/5298 ### Bug Description I'm building frp binaries for Android and found v0.68.1 is not able to be built, prompting `github.com/wlynxg/anet: invalid reference to net.zoneCache` v0.68.0 has no problem. Could be a dependency issue. Probably related: wlynxg/anet#11 , golang/go#68082 ### frpc Version 0.68.1 ### frps Version 0.68.1 ### System Architecture android/arm64, android/amd64 ### Configurations https://github.com/donmor/DroidFRPD/blob/master/.github/workflows/release.yml Actual command: ``` go build -trimpath -ldflags '-s -w -buidid=' -tags frpc -o ../app/src/main/jniLibs/arm64-v8a/libfrpc_0_68_1.so ./cmd/frpc ^^^^ ^^^^^^^^^ ^^^^ ^^^^^^ ^^^^ |or frps |or x86_64 |or frps |version |or frps ``` Built with Android toolchain CGO_ENABLED=1 GOOS=android GOARCH=[arm64, amd64] ### Logs _No response_ ### Steps to reproduce _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [x] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror added the
question
label 2026-05-05 14:35:09 -06:00
Author
Owner

@258692011 commented on GitHub (Apr 29, 2026):

https://github.com/jahen/frp 这里有大佬构建好的

<!-- gh-comment-id:4342276931 --> @258692011 commented on GitHub (Apr 29, 2026): https://github.com/jahen/frp 这里有大佬构建好的
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#4086
No description provided.