• 20-01-2021, 19:32:03
    #1
    Merhaba Android studio da projeyi açınca üstte Pub Get uyarısı veriyor pub get yaptığımda şu hatayı alıyorum:
    C:srcflutterflutterbinflutter.bat --no-color pub get
    Running "flutter pub get" in source...
    Because Uygulama-Projem depends on flutter_localizations any from sdk which depends on intl 0.17.0-nullsafety.2, intl 0.17.0-nullsafety.2 is required.
    So, because Uygulama-Projem depends on intl ^0.16.1, version solving failed.
    pub get failed (1; So, because Uygulama-Projem depends on intl ^0.16.1, version solving failed.)
    Process finished with exit code 1
    --
    Daha sonra pub upgrade butonuna basıyorum şu hatayı veriyor:
    C:srcflutterflutterbinflutter.bat --no-color pub upgrade
    Running "flutter pub upgrade" in source...
    Because Uygulama-Projem depends on flutter_localizations any from sdk which depends on intl 0.17.0-nullsafety.2, intl 0.17.0-nullsafety.2 is required.
    So, because Uygulama-Projem depends on intl ^0.16.1, version solving failed.
    pub upgrade failed (1; So, because Uygulama-Projem depends on intl ^0.16.1, version solving failed.)
    Process finished with exit code 1
    --
    Flutter Doctor çıktısı şu şekilde:
    C:srcflutterflutterbinflutter.bat doctor --verbose
    [√] Flutter (Channel beta, 1.25.0-8.3.pre, on Microsoft Windows [Version 10.0.19041.685], locale tr-TR)
    • Flutter version 1.25.0-8.3.pre at C:srcflutterflutter
    • Framework revision 5d36f2e7f5 (6 days ago), 2021-01-14 15:57:49 -0800
    • Engine revision 7a8f8ca02c
    • Dart version 2.12.0 (build 2.12.0-133.7.beta)
    [√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:UsersyenilAppDataLocalAndroidsdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:Program FilesAndroidAndroid Studiojrebinjava
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.
    [√] Chrome - develop for the web
    • Chrome at C:Program Files (x86)GoogleChromeApplicationchrome.exe
    [√] Android Studio (version 4.1.0)
    • Android Studio at C:Program FilesAndroidAndroid Studio
    • Flutter plugin can be installed from:
    https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
    https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    [√] VS Code (version 1.52.1)
    • VS Code at C:UsersyenilAppDataLocalProgramsMicrosoft VS Code
    • Flutter extension version 3.18.1
    [√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 87.0.4280.141
    • Edge (web) • edge • web-javascript • Microsoft Edge 87.0.664.75
    • No issues found!
    Stackowerflow da bulduğum bir çözüme göre Projeme şu kodu ekliyorum
    dependency_overrides:
    intl: ^0.16.1
    ve daha sonrasında pub get yaptığımda ise şu şekilde hata alıyorum:
    C:srcflutterflutterbinflutter.bat --no-color pub get
    Running "flutter pub get" in source...
    Error on line 7, column 5 of pubspec.yaml: A version constraint must be a string.

    7 │ intl: ^0.16.1
    │ ^^^^^^^^^^^^^

    pub get failed (65; ╵)
    Process finished with exit code 65
    Buda olmayınca projeme şu kodu ekliyorum dependency_overrides: intl: ^0.17.0-nullsafety.2 yine aynı hatayı alıyorum.
    C:srcflutterflutterbinflutter.bat --no-color pub getRunning "flutter pub get" in source...



    Error on line 7, column 5 of pubspec.yaml: A version constraint must be a string. ╷7 │ intl: ^0.17.0-nullsafety.2
    │ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵
    pub get failed (65; ╵)
    Process finished with exit code 65
    -------------------------------------------
    ------------------------------------------
    Yardımcı olabilecek varsa pm atarsa sevinirim.
  • 20-01-2021, 19:37:27
    #2
    Size önerim şu olabilir: komple flutteri silip tekrar en güncel halini yükleyin. Ardından tertemiz bir proje açıp kodlarınızı projeye taşıyın.
  • 20-01-2021, 19:38:11
    #3
    Öncelikle pubspec.yaml dosyanızdaki bağımlılıkların vs aynı girintide olduğundan emin olun. Ardından varsa intl bağımlılığını silin. şunu ekleyin intl: 0.17.0-nullsafety.2
  • 20-01-2021, 19:41:33
    #4
    inspectorrr adlı üyeden alıntı: mesajı görüntüle
    Size önerim şu olabilir: komple flutteri silip tekrar en güncel halini yükleyin. Ardından tertemiz bir proje açıp kodlarınızı projeye taşıyın.
    Flutter en güncel sürümünü kullanıyorum hocam zaten.

    mustafaersoy adlı üyeden alıntı: mesajı görüntüle
    Öncelikle pubspec.yaml dosyanızdaki bağımlılıkların vs aynı girintide olduğundan emin olun. Ardından varsa intl bağımlılığını silin. şunu ekleyin intl: 0.17.0-nullsafety.2
    Deniyeyim hocam.