What I'm trying to do
I am trying to generate an android aar of the v0.1.9 release.
[Clearly describe what you're trying to do.]
I have tried with several different NDK versions but with the last NDK LTR for this example I am using NDK 25.2.9519653. So I have to change a little bit the script for adding the androidapi version to go mobile bind. The final command I am using is as follows:
make bindings-android
----------------------------------------
gomobile: Creating Android bindings
----------------------------------------
gomobile bind -v -androidapi 19 -ldflags '-s -w' -target=android/arm64,android/amd64 -javapkg=org.hyperledger.aries -o=/Users/angelpalomares/atos/workspace/aries/aries-framework-go-0.1.9/cmd/aries-agent-mobile/build/android/aries-agent.aar github.com/hyperledger/aries-framework-go/cmd/aries-agent-mobile/...
write /var/folders/22/117cdfys1nz7jvbszwb4h2xm0000gn/T/gomobile-work-2971092576/src-android-arm64/go.mod
write /var/folders/22/117cdfys1nz7jvbszwb4h2xm0000gn/T/gomobile-work-2971092576/src-android-amd64/go.mod
go: errors parsing go.mod:
/private/var/folders/22/117cdfys1nz7jvbszwb4h2xm0000gn/T/gomobile-work-2971092576/src-android-amd64/go.mod:383: replacement module without version must be directory path (rooted or starting with ./ or ../)
/private/var/folders/22/117cdfys1nz7jvbszwb4h2xm0000gn/T/gomobile-work-2971092576/src-android-amd64/go.mod:385: replacement module without version must be directory path (rooted or starting with ./ or ../)
/private/var/folders/22/117cdfys1nz7jvbszwb4h2xm0000gn/T/gomobile-work-2971092576/src-android-amd64/go.mod:387: replacement module without version must be directory path (rooted or starting with ./ or ../)
/private/var/folders/22/117cdfys1nz7jvbszwb4h2xm0000gn/T/gomobile-work-2971092576/src-android-amd64/go.mod:389: replacement module without version must be directory path (rooted or starting with ./ or ../)
go: errors parsing go.mod:
/private/var/folders/22/117cdfys1nz7jvbszwb4h2xm0000gn/T/gomobile-work-2971092576/src-android-arm64/go.mod:383: replacement module without version must be directory path (rooted or starting with ./ or ../)
/private/var/folders/22/117cdfys1nz7jvbszwb4h2xm0000gn/T/gomobile-work-2971092576/src-android-arm64/go.mod:385: replacement module without version must be directory path (rooted or starting with ./ or ../)
/private/var/folders/22/117cdfys1nz7jvbszwb4h2xm0000gn/T/gomobile-work-2971092576/src-android-arm64/go.mod:387: replacement module without version must be directory path (rooted or starting with ./ or ../)
/private/var/folders/22/117cdfys1nz7jvbszwb4h2xm0000gn/T/gomobile-work-2971092576/src-android-arm64/go.mod:389: replacement module without version must be directory path (rooted or starting with ./ or ../)
gomobile: go mod tidy -v failed: exit status 1
make: *** [bindings-android] Error 1
Expected result
If I tried it with v0.1.8 release I have the following result:
What I'm trying to do I am trying to generate an android aar of the v0.1.9 release.
[Clearly describe what you're trying to do.] I have tried with several different NDK versions but with the last NDK LTR for this example I am using NDK 25.2.9519653. So I have to change a little bit the script for adding the androidapi version to go mobile bind. The final command I am using is as follows:
Expected result If I tried it with v0.1.8 release I have the following result:
And the aar is generated without problems
Actual result I have also tried changing the go env parameters to GO111MODULE=off but I have the following results:
But unfortunately I haven't been able to generate the aar for the v0.1.9
Am I doing something wrong?, could you please help me with this issue?
Thank you very much in advance