gomobile errors on bind #74

Open
opened 2018-12-17 14:22:43 +00:00 by JonasFranz · 1 comment
Owner

Author: @JonasFranzDEV Posted at: 27.10.2017 04:56

I've tried to create an android library out of the gitea go-sdk via gomobile. But gomobile fails with the following errors.

Executed command:

gomobile bind -target android -o gitea.aar -javapkg io.gitea.code.sdk code.gitea.io/sdk/gitea

Error(s):

gomobile: go build -pkgdir=$GOPATH/pkg/gomobile/pkg_android_arm -buildmode=c-shared -o=/tmp/gomobile-work-631988229/android/src/main/jniLibs/armeabi-v7a/libgojni.so /tmp/gomobile-work-631988229/androidlib/main.go failed: exit status 2
# _/tmp/gomobile-work-631988229/gomobile_bind
/tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:1998:1: error: redefinition of 'Java_io_gitea_code_sdk_gitea_CreatePayload_setSecret'
/tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:1991:1: note: previous definition is here
/tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:3658:1: error: redefinition of 'Java_io_gitea_code_sdk_gitea_IssuePayload_setSecret'
/tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:3651:1: note: previous definition is here
/tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:5048:1: error: redefinition of 'Java_io_gitea_code_sdk_gitea_PullRequestPayload_setSecret'
/tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:5041:1: note: previous definition is here
/tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:5171:1: error: redefinition of 'Java_io_gitea_code_sdk_gitea_PushPayload_setSecret'
/tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:5164:1: note: previous definition is here
/tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:5818:1: error: redefinition of 'Java_io_gitea_code_sdk_gitea_RepositoryPayload_setSecret'
/tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:5811:1: note: previous definition is here
Author: @JonasFranzDEV Posted at: 27.10.2017 04:56 I've tried to create an android library out of the gitea go-sdk via gomobile. But gomobile fails with the following errors. Executed command: ```sh gomobile bind -target android -o gitea.aar -javapkg io.gitea.code.sdk code.gitea.io/sdk/gitea ``` Error(s): ``` gomobile: go build -pkgdir=$GOPATH/pkg/gomobile/pkg_android_arm -buildmode=c-shared -o=/tmp/gomobile-work-631988229/android/src/main/jniLibs/armeabi-v7a/libgojni.so /tmp/gomobile-work-631988229/androidlib/main.go failed: exit status 2 # _/tmp/gomobile-work-631988229/gomobile_bind /tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:1998:1: error: redefinition of 'Java_io_gitea_code_sdk_gitea_CreatePayload_setSecret' /tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:1991:1: note: previous definition is here /tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:3658:1: error: redefinition of 'Java_io_gitea_code_sdk_gitea_IssuePayload_setSecret' /tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:3651:1: note: previous definition is here /tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:5048:1: error: redefinition of 'Java_io_gitea_code_sdk_gitea_PullRequestPayload_setSecret' /tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:5041:1: note: previous definition is here /tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:5171:1: error: redefinition of 'Java_io_gitea_code_sdk_gitea_PushPayload_setSecret' /tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:5164:1: note: previous definition is here /tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:5818:1: error: redefinition of 'Java_io_gitea_code_sdk_gitea_RepositoryPayload_setSecret' /tmp/gomobile-work-631988229/gomobile_bind/java_gitea.c:5811:1: note: previous definition is here ```

The demand for cyber security professionals is high. Become a Certified Ethical Hacker to do the same, which a hacker does but legally. Enroll Now for the Ethical hacking Course in Pune.
Ethical Hacking Classes in Pune

The demand for cyber security professionals is high. Become a Certified Ethical Hacker to do the same, which a hacker does but legally. Enroll Now for the Ethical hacking Course in Pune. [Ethical Hacking Classes in Pune ](https://www.sevenmentor.com/ethical_hacking_training_institute_training_classes_in_pune_best_course_in_india.php)
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
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: JonasFranz/go-sdk#74
No description provided.