Getting redefinition error while using gomobile build

I am using gomobile to build .arr file but i am getting error in gobind
i am using the build command as : GOARCH=arm64 CGO_ENABLED=0 GOOS=“android” GOSUMDB=off gomobile bind -target android -v

the error i am facing is :


exue_android.c:729:1: error: redefinition of ‘Java_exue_UserInitConfig_getWorkspace’
exue_android.c:387:1: note: previous definition is here
exue_android.c:804:1: error: redefinition of ‘Java_exue_UserInitConfig_getSupi’
exue_android.c:369:1: note: previous definition is here
exue_android.c:924:1: error: redefinition of ‘Java_exue_UserInitConfig_getLastConnectedServer’
exue_android.c:343:1: note: previous definition is here
gomobile: go build -v -buildmode=c-shared -o=/tmp/gomobile-work-1136567776/android/src/main/jniLibs/armeabi-v7a/ ./gobind failed: exit status 2

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.