0

The issue 40569 makes Golang (mobile binding) incompatible with Android SDK 30+. Calling the stdlib function net.InterfaceAddrs() gives an error due to changes made in Android SDK 30.

Discussion suggests that it can be resolved by modifying go source. I followed the instructions as per this comment, and created the mobile binding using 'gomobile bind ...' ensuring that the modified go source build is used (present in GOPATH and GOROOT). But I'm still getting the same error (route ip+net: netlinkrib: permission denied) on Android SDK 33. Does 'gomobile bind' (gobind) use their own Go binary instead of our installation to create bindings ?

Does somebody have a better idea to resolve this ?

  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Aug 07 '23 at 06:01
  • I'm unable to use modified go library for 'gomobile bind' to resolve the issue in Android, for some reason gomobile bind doesn't use modified go library installed in system. – Lovish Puri Aug 11 '23 at 13:39

0 Answers0