I'm getting this error when trying to create build file on bitbucket

Alex
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 13, 2024

 

+ flutter packages get
2
Running "flutter pub get" in build...
3
Resolving dependencies...
4
The current Dart SDK version is 2.19.4.
5
6
Because vision_mobile_erp requires SDK version >=3.0.2 <4.0.0, version solving failed.
7
pub get failed
8
command: "/sdks/flutter/bin/cache/dart-sdk/bin/dart __deprecated_pub --directory . get --example"
9
pub env: {
10
"FLUTTER_ROOT": "/sdks/flutter",
11
"PUB_ENVIRONMENT": "flutter_bot:flutter_cli:get",
12
"PUB_CACHE": "/root/.pub-cache",
13
}
14
exit code: 1
15

3 answers

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 19, 2024

Hi @Alex and welcome to the community!

Can you please confirm if you are using Bitbucket Cloud and if this is the output of a command in a Bitbucket Pipelines build?

If you are indeed using Bitbucket Cloud Pipelines:

Builds running on Atlassian's infrastructure or with a Linux Docker self-hosted runner run in Docker containers based on the image you specify in your bitbucket-pipelines.yml file. If the Dart SDK is preinstalled in the image, you will see in the build output the version of that SDK. If your build needs a different version, you can use another Docker image as a build container that has a different, compatible version of that SDK. Alternatively, you could also build your own custom Docker image that has the version you want, and use that as a build container.

We support public and private Docker images including those hosted on Docker Hub, AWS, GCP, Azure and self-hosted registries accessible on the internet. You can find more info on the following page:

Builds running with a Windows, Linux Shell, or MacOS runner run directly on the host machine and not in Docker containers. If you're running this Pipelines build with such a runner, the version of the SDK you see is the one installed on the host machine. In that case, you'll need to update/install a newer version of the SDK on the host machine.

Please feel free to reach out if you have any questions.

Kind regards,
Theodora

Mohammad September 3, 2024

@Theodora Boudale  , pls you can provide help , i don't know what is the problem if have you any way to contact with you  , im try to slove this error from 28 day ago

https://community.atlassian.com/t5/Bitbucket-questions/After-build-flutter-web-successfully-build-web-dir-is-not-exists/qaq-p/2801192

 

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 4, 2024

Hi @Mohammad,

I see that one of my colleagues replied to your question!

Theodora

Mohammad September 4, 2024

I am very grateful to him, I did not notice this error despite many attempts. I really thank you for your interest in responding, I did not find better support than Atlassian teams

Like Theodora Boudale likes this
Mohammad September 6, 2024
0 votes
Mohammad September 3, 2024

@Alex  , i have same error when added this image its solved 

image: instrumentisto/flutter:latest
- step:
name: Install Flutter and Set Up Environment
script:
- export PATH="$PATH:/sdks/flutter/bin"
- flutter --version
- dart --version
- flutter doctor
0 votes
Nicolas Grossi
Banned
June 14, 2024

@Alex Welcome! It appears that your SDK version is not supported ?

 

Nicolas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events