Error: go:35:3: unknown field 'ForceAttemptHTTP2' in struct literal of type http.Transport

github.com/bitrise-io/steps-gradle-runner/vendor/github.com/hashicorp/go-cleanhttp

src/github.com/bitrise-io/steps-gradle-runner/vendor/github.com/hashicorp/go-cleanhttp/cleanhttp.go:35:3: unknown field ‘ForceAttemptHTTP2’ in struct literal of type http.Transport

ERRO[18:21:22] Step (Gradle Android Check) failed: Failed to prepare the step for execution through the required toolkit (go), error: Failed to install package, error: exit status 2

|

Hi @jcosilva!

This is happening due to a conflict of new go version introduced in the step and the stack you’re using (16.04 LTS Ubuntu) isn’t supporting the newer go version.

As a quick fix you can downgrade the step, or simply move to a different stack as this one will get deprecated in two months.

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