flutter-sdk-image icon indicating copy to clipboard operation
flutter-sdk-image copied to clipboard

The current Flutter SDK version is 0.0.0-unknown.

Open safvan-husain opened this issue 1 year ago • 5 comments

The current Flutter SDK version is 0.0.0-unknown.

safvan-husain avatar Feb 10 '24 06:02 safvan-husain

That happens to me if I use USER root, when I set back to the default user mobiledevops it works as expected

bawahakim avatar Feb 16 '24 05:02 bawahakim

image: mobiledevops/flutter-sdk-image __

+ flutter pub get
fatal: detected dubious ownership in repository at '/home/mobiledevops/.flutter-sdk'
To add an exception for this directory, call:

	git config --global --add safe.directory /home/mobiledevops/.flutter-sdk
Found an existing Pub cache at /home/mobiledevops/.pub-cache.

It can be repaired by running `dart pub cache repair`.
It can be reset by running `dart pub cache clean`.

Resolving dependencies...
The current Dart SDK version is 3.3.2.
The current Flutter SDK version is 0.0.0-unknown.

Because firebase_core >=0.1.0 requires Flutter SDK version >=0.1.4 and firebase_core <0.7.0-nullsafety.0 doesn't support null safety, firebase_core is forbidden.

So, because PROJECT_NAME depends on firebase_core any, version solving failed.

The lower bound of "sdk: '>=1.8.0 <2.0.0 or >=2.0.0-dev.28.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.

For details, see https://dart.dev/null-safety

You can try the following suggestion to make the pubspec resolve:
* Try using the Flutter SDK version: 3.22.0. 

j-j-gajjar avatar May 19 '24 17:05 j-j-gajjar

downloading flutter SDK from github probably solve this issue, I had same issue when I was setting up flutter sdk on a linux machine not with Docker, but when I downloaded from githup, it able to detect the source as well as the version

safvan-husain avatar May 21 '24 04:05 safvan-husain

Hi @safvan-husain Would you kindly provide me with a short code sample? This image wasn't successful when I attempted it in CI/CO.

j-j-gajjar avatar May 30 '24 05:05 j-j-gajjar

You can add a step to your CI run git config --global --add safe.directory /home/mobiledevops/.flutter-sdk For example: https://codeberg.org/UnifiedPush/flutter-connector/src/branch/main/.woodpecker/main.yml#L9

p1gp1g avatar Aug 15 '24 13:08 p1gp1g