<span><span>+ flutter packages get</span></span>
<span><span>Running "flutter pub get" in build...</span></span>
<span><span>Resolving dependencies...</span></span>
<span><span>The current Dart SDK version is 2.19.4.</span></span>
<span><span>Because vision_mobile_erp requires SDK version >=3.0.2 <4.0.0, version solving failed.</span></span>
<span><span>pub get failed</span></span>
<span><span>command: "/sdks/flutter/bin/cache/dart-sdk/bin/dart __deprecated_pub --directory . get --example"</span></span>
<span><span>pub env: {</span></span>
<span><span>"FLUTTER_ROOT": "/sdks/flutter",</span></span>
<span><span>"PUB_ENVIRONMENT": "flutter_bot:flutter_cli:get",</span></span>
<span><span>"PUB_CACHE": "/root/.pub-cache",</span></span>
<span><span>}</span></span>
<span><span>exit code: 1</span></span>
@Alex Welcome! It appears that your SDK version is not supported ?
Nicolas
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
@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
@Alex , i have same error when added this image its solved
image: instrumentisto/flutter:latest
- step:name: Install Flutter and Set Up Environmentscript: - export PATH="$PATH:/sdks/flutter/bin" - flutter --version - dart --version - flutter doctor
Hi @Mohammad,
I see that one of my colleagues replied to your question!Theodora
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
It looks like you're new here. Sign in or register to get started.