I'm getting this error when trying to create build file on bitbucket
Asked by Alex:

+ 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


Answers:
author: Theodora Boudale
body: Hi [@Alex](/t5/user/viewprofilepage/user-id/5520796) 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:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-docker-images-as-build-environments/>

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

comments: author: Mohammad
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) , 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>


author: Theodora Boudale
body: Hi [@Mohammad](/t5/user/viewprofilepage/user-id/5352055),

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

Theodora


author: Mohammad
body: 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


author: Mohammad
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) ,

You can advise for a solution or any thing about this issue -\> <https://community.atlassian.com/t5/Pipelines-questions/Issue-Missing-Files-in-Build-Output-Bitbucket-Pipelines/qaq-p/2803492>


author: Mohammad
body: [@Alex](/t5/user/viewprofilepage/user-id/5520796) , 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
```


author: Nicolas Grossi
body: [@Alex](/t5/user/viewprofilepage/user-id/5520796) Welcome! It appears that your SDK version is not supported ?

Nicolas