Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: stacked create app does not work in Windows with flutter 3.24.4, Android Studio 2024.2.1, Java SDK 21. #1142

Open
zemega opened this issue Nov 3, 2024 · 8 comments
Labels

Comments

@zemega
Copy link

zemega commented Nov 3, 2024

Describe the bug

On a fresh install of flutter 3.24.4, and Android Studio 2024.2.1, and Java SDK 21. stacked create app my_app fails to run properly.

What operating system do you use?

Windows

Information about the installed tooling

[✓] Flutter (Channel stable, 3.24.4, on Microsoft Windows [Version 10.0.22631.4317], locale en-US)
    • Flutter version 3.24.4 on channel stable at C:\flutterdev\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 603104015d (10 days ago), 2024-10-24 08:01:25 -0700
    • Engine revision db49896cf2
    • Dart version 3.5.4
    • DevTools version 2.37.3

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\Yunus\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: C:\Program Files\Java\jdk-21\bin\java
    • Java version Java(TM) SE Runtime Environment (build 21.0.5+9-LTS-239)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.5)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.11.35327.3
    • Windows 10 SDK version 10.0.22621.0

[✓] Android Studio (version 2024.2)
    • Android Studio at C:\Program Files\Android\Android 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 21.0.3+-12282718-b509.11)

[✓] VS Code (version 1.94.2)
    • VS Code at C:\Users\Yunus\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.100.0

[✓] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22631.4317]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 130.0.6723.70
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 130.0.2849.56

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Steps to reproduce the issue

Create a new stacked cli project through powershell

 stacked create app my_app

Expected behavior

No response

Screenshots

No response

Additional Context

Someone else have the same issue. #1137.

@bogui
Copy link

bogui commented Nov 5, 2024

Watching this

@hassan1105
Copy link

same issue i am trying to create an app using stacked CLI. it creates the app folder but does not resolve the folders, routes, etc.

@zemega
Copy link
Author

zemega commented Nov 6, 2024

A small update. I decided to use Java SDK 17 instead. Reason being gradle default configuration in Flutter 3.24.4 does not support Java SDK 21.

No problem in using stacked cli after that.

So, I guess the issue lies somewhere between Flutter 3.24.4 with Java SDK 21, and/or the default gradle configuration in Flutter 3.24.4.

@zemega zemega changed the title [bug]: stacked create app does not work in Windows with flutter 3.24.4, Android Studio 2024.2.1 [bug]: stacked create app does not work in Windows with flutter 3.24.4, Android Studio 2024.2.1, Java SDK 21. Nov 6, 2024
@FilledStacks
Copy link
Contributor

thanks for the update @zemega I appreciate that.

Will label this and look into it when we get some time.

@Correct-Syntax
Copy link

I'm having the same issue, but with Flutter 3.27.0.

@Pebkac03
Copy link

Pebkac03 commented Jan 4, 2025

Hi everyone.

Since Dart requires the app name to be snake case, contain only [a-z0-9_], not start with a digit, and not be a reserved word (source) and the cli currently lacks any validation (partial solution in the works: Stacked-Org/cli#54) it would be massively helpful if everyone experiencing this issue could confirm if it remains when the app name is in accordance with the package_names linter rule mentioned above.

Also, others have reported getting more descriptive errors when running: flutter create <appname>.

@zemega
Copy link
Author

zemega commented Jan 4, 2025

Using Flutter 3.24.5

puro flutter doctor -v
[✓] Flutter (Channel stable, 3.24.5, on Microsoft Windows [Version 10.0.22631.4602], locale en-US)
    • Flutter version 3.24.5 on channel stable at C:\Users\Yunus\.puro\envs\3.24.5\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision dec2ee5c1f (7 weeks ago), 2024-11-13 11:13:06 -0800
    • Engine revision a18df97ca5
    • Dart version 3.5.4
    • DevTools version 2.37.3

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\Yunus\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: C:\Program Files\Java\jdk-17\bin\java
    • Java version Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.6)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.11.35431.28
    • Windows 10 SDK version 10.0.22621.0

[✓] Android Studio (version 2024.2)
    • Android Studio at C:\Program Files\Android\Android 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 17.0.9+0--11185874)

[✓] VS Code (version 1.96.2)
    • VS Code at C:\Users\Yunus\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.102.0

[✓] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 12 (API 31) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22631.4602]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 131.0.6778.205
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 131.0.2903.112

[✓] Network resources
    • All expected network resources are available.

• No issues found!
flutter create test1
Creating project test1...
Resolving dependencies in `test1`... (1.0s)
Downloading packages...
Got dependencies in `test1`.
Wrote 129 files.

All done!
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev

In order to run your application, type:

  $ cd test1
  $ flutter run

Your application code is in test1\lib\main.dart.
stacked create app test2
No configuration file found. Default Stacked values will be used.
Running flutter create test2 -e ...
Creating project test2...

Resolving dependencies in `test2`...


Downloading packages...


Got dependencies in `test2`.

Wrote 128 files.

All done!

You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev

In order to run your empty application, type:

  $ cd test2
  $ flutter run

Your empty application code is in test2\lib\main.dart.


Command complete. ExitCode: 0
Add Stacked Magic ...
Created File: 'test2\test/viewmodels/notice_sheet_model_test.dart'
Created File: 'test2\test/viewmodels/info_alert_dialog_model_test.dart'
Created File: 'test2\test/viewmodels/home_viewmodel_test.dart'
Created File: 'test2\test/helpers/test_helpers.dart'
Created File: 'test2\stacked.json'
Created File: 'test2\pubspec.yaml'
Created File: 'test2\lib/ui/views/startup/startup_viewmodel.dart'
Created File: 'test2\lib/ui/views/startup/startup_view.dart'
Created File: 'test2\lib/ui/views/home/home_viewmodel.dart'
Created File: 'test2\lib/ui/views/home/home_view.dart'
Created File: 'test2\lib/ui/dialogs/info_alert/info_alert_dialog_model.dart'
Created File: 'test2\lib/ui/dialogs/info_alert/info_alert_dialog.dart'
Created File: 'test2\lib/ui/common/ui_helpers.dart'
Created File: 'test2\lib/ui/common/app_strings.dart'
Created File: 'test2\lib/ui/common/app_colors.dart'
Created File: 'test2\lib/ui/bottom_sheets/notice/notice_sheet_model.dart'
Created File: 'test2\lib/ui/bottom_sheets/notice/notice_sheet.dart'
Created File: 'test2\lib/main.dart'
Created File: 'test2\lib/app/app.dart'
Created File: 'test2\README.md'
Created File: 'test2\.vscode/settings.json'
Running dart format . -l 80 in test2/...
Formatted lib\app\app.dart

Formatted lib\main.dart

Formatted lib\ui\bottom_sheets\notice\notice_sheet.dart

Formatted lib\ui\bottom_sheets\notice\notice_sheet_model.dart

Formatted lib\ui\common\app_colors.dart

Formatted lib\ui\common\app_strings.dart

Formatted lib\ui\common\ui_helpers.dart

Formatted lib\ui\dialogs\info_alert\info_alert_dialog.dart

Formatted lib\ui\dialogs\info_alert\info_alert_dialog_model.dart

Formatted lib\ui\views\home\home_view.dart

Formatted lib\ui\views\home\home_viewmodel.dart

Formatted lib\ui\views\startup\startup_view.dart

Formatted lib\ui\views\startup\startup_viewmodel.dart

Formatted test\helpers\test_helpers.dart

Formatted test\viewmodels\home_viewmodel_test.dart

Formatted test\viewmodels\info_alert_dialog_model_test.dart

Formatted test\viewmodels\notice_sheet_model_test.dart

Formatted 17 files (17 changed) in 0.31 seconds.

Command complete. ExitCode: 0
Running flutter pub get in test2/...
Resolving dependencies...

Downloading packages...


+ _fe_analyzer_shared 72.0.0 (78.0.0 available)
+ _macros 0.3.2 from sdk dart
+ analyzer 6.7.0 (7.1.0 available)
+ args 2.6.0
  async 2.11.0 (2.12.0 available)
  boolean_selector 2.1.1 (2.1.2 available)
+ build 2.4.1 (2.4.2 available)
+ build_config 1.1.1 (1.1.2 available)
+ build_daemon 4.0.2 (4.0.3 available)
+ build_resolvers 2.4.2 (2.4.3 available)

+ build_runner 2.4.13 (2.4.14 available)
+ build_runner_core 7.3.2 (8.0.0 available)

+ built_collection 5.1.1
+ built_value 8.9.3
  characters 1.3.0 (1.4.0 available)
+ checked_yaml 2.0.3
  clock 1.1.1 (1.1.2 available)
+ code_builder 4.10.1
  collection 1.18.0 (1.19.1 available)
+ convert 3.1.2
+ crypto 3.0.6
+ dart_style 2.3.7 (3.0.1 available)
  fake_async 1.3.1 (1.3.2 available)
+ file 7.0.1
+ fixnum 1.1.1
< flutter_lints 2.0.3 (was 4.0.0) (5.0.0 available)
+ freezed_annotation 2.4.4
+ frontend_server_client 4.0.0
+ get 4.6.6
+ get_it 8.0.3
+ glob 2.1.2
+ graphs 2.3.2
+ http_multi_server 3.2.2
+ http_parser 4.0.2 (4.1.2 available)
+ io 1.0.5
+ js 0.7.1
+ json_annotation 4.9.0
  leak_tracker 10.0.5 (10.0.8 available)
  leak_tracker_flutter_testing 3.0.5 (3.0.9 available)
< lints 2.1.1 (was 4.0.0) (5.1.1 available)
+ logger 1.4.0 (2.5.0 available)
+ logging 1.3.0
+ macros 0.1.2-main.4 (0.1.3-main.0 available)
  matcher 0.12.16+1 (0.12.17 available)
  material_color_utilities 0.11.1 (0.12.0 available)
  meta 1.15.0 (1.16.0 available)
+ mime 2.0.0
+ mockito 5.4.4 (5.4.5 available)
+ nested 1.0.0

+ package_config 2.1.1
  path 1.9.0 (1.9.1 available)
+ pool 1.5.1
+ provider 6.1.2
+ pub_semver 2.1.5
+ pubspec_parse 1.4.0
+ recase 4.1.0
+ shelf 1.4.1 (1.4.2 available)
+ shelf_web_socket 2.0.1
+ source_gen 1.5.0 (2.0.0 available)
  source_span 1.10.0 (1.10.1 available)
  stack_trace 1.11.1 (1.12.1 available)
+ stacked 3.4.4
+ stacked_generator 1.6.1
+ stacked_services 1.6.0
+ stacked_shared 1.4.2
  stream_channel 2.1.2 (2.1.3 available)
+ stream_transform 2.1.1
  string_scanner 1.2.0 (1.4.1 available)
  term_glyph 1.2.1 (1.2.2 available)
  test_api 0.7.2 (0.7.4 available)

+ timing 1.0.2
+ typed_data 1.4.0
+ universal_io 2.2.2
  vm_service 14.2.5 (15.0.0 available)
+ watcher 1.1.1
+ web 1.1.0
+ web_socket 0.1.6
+ web_socket_channel 3.0.1
+ xdg_directories 1.1.0
+ yaml 3.1.3

Changed 61 dependencies!


36 packages have newer versions incompatible with dependency constraints.

Try `flutter pub outdated` for more information.

Command complete. ExitCode: 0
Running dart run build_runner build --delete-conflicting-outputs in test2/...
[INFO] Generating build script...

[INFO] Generating build script completed, took 351ms


[INFO] Precompiling build script......

[INFO] Precompiling build script... completed, took 4.3s


[INFO] Initializing inputs

[INFO] Building new asset graph...

[INFO] Building new asset graph completed, took 2.2s

[INFO] Checking for unexpected pre-existing outputs....

[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms


[INFO] Running build...

[INFO] Generating SDK summary...

[INFO] 3.1s elapsed, 0/16 actions completed.

[INFO] 5.9s elapsed, 0/16 actions completed.

[INFO] 7.4s elapsed, 0/16 actions completed.

[INFO] Generating SDK summary completed, took 7.5s


[INFO] 8.6s elapsed, 31/40 actions completed.

[INFO] 9.7s elapsed, 39/44 actions completed.

[INFO] 10.8s elapsed, 55/57 actions completed.

[INFO] 20.2s elapsed, 55/57 actions completed.

[INFO] 21.2s elapsed, 154/158 actions completed.

[INFO] 22.5s elapsed, 178/181 actions completed.

[INFO] Running build completed, took 22.5s

[INFO] Caching finalized dependency graph...

[INFO] Caching finalized dependency graph completed, took 151ms


[INFO] Succeeded after 22.7s with 71 outputs (247 actions)


Command complete. ExitCode: 0
Running dart format . -l 80 in test2/...
Formatted 22 files (0 changed) in 0.37 seconds.

Command complete. ExitCode: 0
Cleaning project...
Project cleaned.

Using Flutter 3.27.1

 puro flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.1, on Microsoft Windows [Version 10.0.22631.4602], locale en-US)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.6)
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.96.2)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!
PS D:\flutter> puro flutter doctor -v
[✓] Flutter (Channel stable, 3.27.1, on Microsoft Windows [Version 10.0.22631.4602], locale en-US)
    • Flutter version 3.27.1 on channel stable at C:\Users\Yunus\.puro\envs\stable\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 17025dd882 (3 weeks ago), 2024-12-17 03:23:09 +0900
    • Engine revision cb4b5fff73
    • Dart version 3.6.0
    • DevTools version 2.40.2

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\Yunus\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: C:\Program Files\Java\jdk-17\bin\java
    • Java version Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.6)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.11.35431.28
    • Windows 10 SDK version 10.0.22621.0

[✓] Android Studio (version 2024.2)
    • Android Studio at C:\Program Files\Android\Android 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 17.0.9+0--11185874)

[✓] VS Code (version 1.96.2)
    • VS Code at C:\Users\Yunus\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.102.0

[✓] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 12 (API 31) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22631.4602]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 131.0.6778.205
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 131.0.2903.112

[✓] Network resources
    • All expected network resources are available.

• No issues found!
 flutter create test3
Creating project test3...
Resolving dependencies in `test3`...
Downloading packages...
Got dependencies in `test3`.
Wrote 130 files.

All done!
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev

In order to run your application, type:

  $ cd test3
  $ flutter run

Your application code is in test3\lib\main.dart.
stacked create app test4
Can't load Kernel binary: Invalid kernel binary format version.
No configuration file found. Default Stacked values will be used.
Running flutter create test4 -e ...
Creating project test4...

Resolving dependencies in `test4`...

Downloading packages...

Got dependencies in `test4`.

Wrote 129 files.

All done!

You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev

In order to run your empty application, type:

  $ cd test4
  $ flutter run

Your empty application code is in test4\lib\main.dart.


Command complete. ExitCode: 0
Add Stacked Magic ...
Created File: 'test4\test/viewmodels/notice_sheet_model_test.dart'
Created File: 'test4\test/viewmodels/info_alert_dialog_model_test.dart'
Created File: 'test4\test/viewmodels/home_viewmodel_test.dart'
Created File: 'test4\test/helpers/test_helpers.dart'
Created File: 'test4\stacked.json'
Created File: 'test4\pubspec.yaml'
Created File: 'test4\lib/ui/views/startup/startup_viewmodel.dart'
Created File: 'test4\lib/ui/views/startup/startup_view.dart'
Created File: 'test4\lib/ui/views/home/home_viewmodel.dart'
Created File: 'test4\lib/ui/views/home/home_view.dart'
Created File: 'test4\lib/ui/dialogs/info_alert/info_alert_dialog_model.dart'
Created File: 'test4\lib/ui/dialogs/info_alert/info_alert_dialog.dart'
Created File: 'test4\lib/ui/common/ui_helpers.dart'
Created File: 'test4\lib/ui/common/app_strings.dart'
Created File: 'test4\lib/ui/common/app_colors.dart'
Created File: 'test4\lib/ui/bottom_sheets/notice/notice_sheet_model.dart'
Created File: 'test4\lib/ui/bottom_sheets/notice/notice_sheet.dart'
Created File: 'test4\lib/main.dart'
Created File: 'test4\lib/app/app.dart'
Created File: 'test4\README.md'
Created File: 'test4\.vscode/settings.json'
Running dart format . -l 80 in test4/...
Formatted lib\app\app.dart

Formatted lib\main.dart

Formatted lib\ui\bottom_sheets\notice\notice_sheet.dart

Formatted lib\ui\bottom_sheets\notice\notice_sheet_model.dart

Formatted lib\ui\common\app_colors.dart

Formatted lib\ui\common\app_strings.dart

Formatted lib\ui\common\ui_helpers.dart

Formatted lib\ui\dialogs\info_alert\info_alert_dialog.dart

Formatted lib\ui\dialogs\info_alert\info_alert_dialog_model.dart

Formatted lib\ui\views\home\home_view.dart

Formatted lib\ui\views\home\home_viewmodel.dart

Formatted lib\ui\views\startup\startup_view.dart

Formatted lib\ui\views\startup\startup_viewmodel.dart

Formatted test\helpers\test_helpers.dart

Formatted test\viewmodels\home_viewmodel_test.dart

Formatted test\viewmodels\info_alert_dialog_model_test.dart

Formatted test\viewmodels\notice_sheet_model_test.dart

Formatted 17 files (17 changed) in 0.34 seconds.

Command complete. ExitCode: 0
Running flutter pub get in test4/...
Resolving dependencies...

Downloading packages...

+ _fe_analyzer_shared 76.0.0 (78.0.0 available)
+ _macros 0.3.3 from sdk dart
+ analyzer 6.11.0 (7.1.0 available)
+ args 2.6.0
  async 2.11.0 (2.12.0 available)
  boolean_selector 2.1.1 (2.1.2 available)
+ build 2.4.2
+ build_config 1.1.2
+ build_daemon 4.0.3
+ build_resolvers 2.4.3
+ build_runner 2.4.14
+ build_runner_core 8.0.0
+ built_collection 5.1.1
+ built_value 8.9.3
  characters 1.3.0 (1.4.0 available)
+ checked_yaml 2.0.3
  clock 1.1.1 (1.1.2 available)
+ code_builder 4.10.1
  collection 1.19.0 (1.19.1 available)
+ convert 3.1.2

+ crypto 3.0.6
+ dart_style 2.3.7 (3.0.1 available)
  fake_async 1.3.1 (1.3.2 available)

+ file 7.0.1
+ fixnum 1.1.1
< flutter_lints 2.0.3 (was 5.0.0) (5.0.0 available)
+ freezed_annotation 2.4.4
+ frontend_server_client 4.0.0
+ get 4.6.6
+ get_it 8.0.3
+ glob 2.1.2
+ graphs 2.3.2
+ http_multi_server 3.2.2
+ http_parser 4.1.2
+ io 1.0.5
+ js 0.7.1
+ json_annotation 4.9.0
  leak_tracker 10.0.7 (10.0.8 available)
  leak_tracker_flutter_testing 3.0.8 (3.0.9 available)
< lints 2.1.1 (was 5.1.1) (5.1.1 available)
+ logger 1.4.0 (2.5.0 available)
+ logging 1.3.0
+ macros 0.1.3-main.0
  matcher 0.12.16+1 (0.12.17 available)
  material_color_utilities 0.11.1 (0.12.0 available)
  meta 1.15.0 (1.16.0 available)
+ mime 2.0.0
+ mockito 5.4.5
+ nested 1.0.0
+ package_config 2.1.1
  path 1.9.0 (1.9.1 available)
+ pool 1.5.1
+ provider 6.1.2
+ pub_semver 2.1.5
+ pubspec_parse 1.4.0
+ recase 4.1.0
+ shelf 1.4.2
+ shelf_web_socket 2.0.1
+ source_gen 1.5.0 (2.0.0 available)
  source_span 1.10.0 (1.10.1 available)
  stack_trace 1.12.0 (1.12.1 available)
+ stacked 3.4.4
+ stacked_generator 1.6.1
+ stacked_services 1.6.0

+ stacked_shared 1.4.2
  stream_channel 2.1.2 (2.1.3 available)
+ stream_transform 2.1.1
  string_scanner 1.3.0 (1.4.1 available)
  term_glyph 1.2.1 (1.2.2 available)
  test_api 0.7.3 (0.7.4 available)
+ timing 1.0.2
+ typed_data 1.4.0
+ universal_io 2.2.2
  vm_service 14.3.0 (15.0.0 available)
+ watcher 1.1.1
+ web 1.1.0
+ web_socket 0.1.6
+ web_socket_channel 3.0.1
+ xdg_directories 1.1.0
+ yaml 3.1.3

Changed 61 dependencies!

26 packages have newer versions incompatible with dependency constraints.

Try `flutter pub outdated` for more information.

Command complete. ExitCode: 0
Running dart run build_runner build --delete-conflicting-outputs in test4/...
[INFO] Generating build script...

[INFO] Generating build script completed, took 313ms


[INFO] Precompiling build script......

[INFO] Precompiling build script... completed, took 4.4s


[INFO] Initializing inputs

[INFO] Building new asset graph...

[INFO] Building new asset graph completed, took 1.8s

[INFO] Checking for unexpected pre-existing outputs....

[INFO] Checking for unexpected pre-existing outputs. completed, took 0ms


[INFO] Running build...

[INFO] Generating SDK summary...

[INFO] 3.1s elapsed, 0/16 actions completed.

[INFO] 6.1s elapsed, 0/16 actions completed.

[INFO] 7.1s elapsed, 0/16 actions completed.

[INFO] Generating SDK summary completed, took 7.7s


[INFO] 8.8s elapsed, 38/43 actions completed.

[INFO] 9.8s elapsed, 39/44 actions completed.

[INFO] 10.9s elapsed, 44/49 actions completed.

[INFO] 21.9s elapsed, 55/57 actions completed.

[INFO] 22.9s elapsed, 156/162 actions completed.

[INFO] 24.1s elapsed, 178/181 actions completed.

[INFO] Running build completed, took 24.1s

[INFO] Caching finalized dependency graph...

[INFO] Caching finalized dependency graph completed, took 153ms


[INFO] Succeeded after 24.3s with 71 outputs (247 actions)


Command complete. ExitCode: 0
Running dart format . -l 80 in test4/...
Formatted 22 files (0 changed) in 0.39 seconds.

Command complete. ExitCode: 0
Cleaning project...
Project cleaned.

Remarks

Well, I started using puro to manage versions. There's no problem in using stacked_cli to create app with either Flutter version 3.24.5 or 3.27.1. I am using Java 17 though. I'm using Android Studio 2023.2.1 Patch 2. I'm not sure why flutter doctor shows 2024.2. I did start with Android Studio 2024.2 at first, but later decided to downgrade.

@hassan1105
Copy link

I’m not sure why, but after uninstalling Android Studio and running the command in VS Code, it worked and successfully created all the files and folder structures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants