gobind failed #2378
Unanswered
shahinfasihi
asked this question in
Q&A
gobind failed
#2378
Replies: 1 comment 8 replies
-
you should implement the interfaces you own correctly, as gomobile accepts only the interfaces within the top-level package. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to generate a
.aar
file with the latest code of this repository but I get an error that I will mention belowgo version => 1.20
ndk version => 25.2.9519653
sudo gomobile bind -v -androidapi 19 -ldflags='-s -w' ./
sudo gomobile bind -target=android -v -o v2ray.aar ./
gobind/gobind
core_android.c:272:1: error: redefinition of 'Java_core_InboundHandlerConfig_getTag'
core_android.c:235:1: note: previous definition is here
core_android.c:377:1: error: redefinition of 'Java_core_OutboundHandlerConfig_getTag'
core_android.c:340:1: note: previous definition is here
core_android.c:396:1: error: redefinition of 'Java_core_OutboundHandlerConfig_getExpire'
core_android.c:328:1: note: previous definition is here
core_android.c:411:1: error: redefinition of 'Java_core_OutboundHandlerConfig_getComment'
core_android.c:320:1: note: previous definition is here
./gomobile: go build -v -buildmode=c-shared -o=/tmp/gomobile-work-3767676161/android/src/main/jniLibs/x86/libgojni.so ./gobind failed: exit status 1
Beta Was this translation helpful? Give feedback.
All reactions