diff --git a/cmd/gomobile/init.go b/cmd/gomobile/init.go index 39619343e..9e2adcbde 100644 --- a/cmd/gomobile/init.go +++ b/cmd/gomobile/init.go @@ -145,7 +145,7 @@ func runInit(cmd *command) error { // Install standard libraries for cross compilers. start := time.Now() - if err := installStd(androidArmEnv); err != nil { + if err := installStd(androidArmEnv, "-buildmode=c-shared"); err != nil { return err } if err := installDarwin(); err != nil {