From ca331f3c67635c449a70314f89e89f3d4ac6d60f Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 9 Jun 2021 12:57:29 +0900 Subject: [PATCH] Revert "cmd/ebitenmobile: Remove gomobile init" This reverts commit ecc8514d4bafadc847bc5e2079fd79fc77ceeac1. Reason: This doesn't fix the issue. gomobile assumes the existence of $GOPATH/pkg/gomobile, so leave it as it is. Updates #1666 --- cmd/ebitenmobile/gomobile.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/ebitenmobile/gomobile.go b/cmd/ebitenmobile/gomobile.go index e7ecf463b..7c90dcdc1 100644 --- a/cmd/ebitenmobile/gomobile.go +++ b/cmd/ebitenmobile/gomobile.go @@ -137,7 +137,9 @@ func prepareGomobileCommands() error { return err } - // `gomobile init` is not needed. This just ensures the existence of the latest gobind command. + if err := runCommand("gomobile", []string{"init"}, nil); err != nil { + return err + } return nil }