Comments (4)
Hi @cmarques2, I've followed your steps but I didn't receive any errors.
Anyway, did you read your flutter doctor output? It says that dart is resolved to C:\tools\dart-sdk\bin\dart.exe
,
while your Flutter installation is resolved to d:\dev\flutter\bin
.
Try to remove the enviroinment variable that has this value C:\tools\dart-sdk\bin\dart.exe
, or update it to this: d:\dev\flutter\bin
Making this change, you'll use dart that is inside Flutter folder.
You can find my tests below:
Flutter Doctor Output
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.4.1 23E224 darwin-arm64, locale it-IT)
• Flutter version 3.22.0 on channel stable at /Applications/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5dcb86f68f (8 days ago), 2024-05-09 07:39:20 -0500
• Engine revision f6344b75dc
• Dart version 3.4.0
• DevTools version 2.34.3
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/antonio/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15C500b
• CocoaPods version 1.14.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.2)
• Android Studio at /Applications/Android Studio.app/Contents
• 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.6+0-17.0.6b802.4-9586694)
[✓] VS Code (version 1.89.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.88.0
[✓] Network resources
• All expected network resources are available.
Output of "flutter build web --output=..\build --verbose"
[ +3 ms] executing: sw_vers -productName
[ +12 ms] Exit code 0 from: sw_vers -productName
[ ] macOS
[ ] executing: sw_vers -productVersion
[ +11 ms] Exit code 0 from: sw_vers -productVersion
[ ] 14.4.1
[ ] executing: sw_vers -buildVersion
[ +7 ms] Exit code 0 from: sw_vers -buildVersion
[ ] 23E224
[ ] executing: uname -m
[ +2 ms] Exit code 0 from: uname -m
[ ] arm64
[ +2 ms] executing: sysctl hw.optional.arm64
[ +2 ms] Exit code 0 from: sysctl hw.optional.arm64
[ ] hw.optional.arm64: 1
[ +30 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +18 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +2 ms] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +35 ms] Skipping pub get: version match.
[ +82 ms] Generating /Users/antonio/Documents/Progetti/test_output/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +62 ms] generated_plugin_registrant.dart not found. Skipping.
[ ] Compiling lib/main.dart for the Web...
[ +2 ms] Initializing file store
[ +14 ms] web_entrypoint: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /Applications/flutter/packages/flutter_tools/lib/src/build_system/targets/web.dart}
[ ] Skipping target: gen_localizations
[ +1 ms] invalidated build due to missing files: /Users/antonio/Documents/Progetti/test_output/web/*/index.html, /Users/antonio/Documents/Progetti/test_output/web/flutter_bootstrap.js
[ ] web_templated_files: Starting due to {InvalidatedReasonKind.buildKeyChanged: The target build key changed., InvalidatedReasonKind.inputMissing: The following inputs were missing:
/Users/antonio/Documents/Progetti/test_output/web/*/index.html,/Users/antonio/Documents/Progetti/test_output/web/flutter_bootstrap.js, InvalidatedReasonKind.inputChanged: The following inputs have updated
contents: /Applications/flutter/bin/internal/engine.version}
[ +2 ms] web_static_assets: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /Applications/flutter/bin/internal/engine.version}
[ +35 ms] web_static_assets: Complete
[ +25 ms] web_templated_files: Complete
[ +10 ms] web_entrypoint: Complete
[ ] dart2js: Starting due to {}
[ +3 ms] executing: /Applications/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /Applications/flutter/bin/cache/dart-sdk/bin/snapshots/dart2js.dart.snapshot
--platform-binaries=/Applications/flutter/bin/cache/flutter_web_sdk/kernel --invoker=flutter_tool -Ddart.vm.product=true
-DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/f6344b75dcf861d8bf1f1322780b8811f982e31a/ -DFLUTTER_WEB_AUTO_DETECT=true --native-null-assertions --no-source-maps -o
/Users/antonio/Documents/Progetti/test_output/.dart_tool/flutter_build/8ef3e3f8fa98e7201dca5d5080bf0168/app.dill --packages=.dart_tool/package_config.json --cfe-only
/Users/antonio/Documents/Progetti/test_output/.dart_tool/flutter_build/8ef3e3f8fa98e7201dca5d5080bf0168/main.dart
[+6018 ms] Compiled 37,578,718 input bytes (29,111,668 characters source) to 25,918,104 kernel bytes in 5.79 seconds using 538.281 MB of memory
Dart file .dart_tool/flutter_build/8ef3e3f8fa98e7201dca5d5080bf0168/main.dart compiled to dill: .dart_tool/flutter_build/8ef3e3f8fa98e7201dca5d5080bf0168/app.dill.
[ +1 ms] executing: /Applications/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /Applications/flutter/bin/cache/dart-sdk/bin/snapshots/dart2js.dart.snapshot
--platform-binaries=/Applications/flutter/bin/cache/flutter_web_sdk/kernel --invoker=flutter_tool -Ddart.vm.product=true
-DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/f6344b75dcf861d8bf1f1322780b8811f982e31a/ -DFLUTTER_WEB_AUTO_DETECT=true --native-null-assertions --no-source-maps -O4 -o
/Users/antonio/Documents/Progetti/test_output/.dart_tool/flutter_build/8ef3e3f8fa98e7201dca5d5080bf0168/main.dart.js
/Users/antonio/Documents/Progetti/test_output/.dart_tool/flutter_build/8ef3e3f8fa98e7201dca5d5080bf0168/app.dill
[+7585 ms] /Applications/flutter/packages/flutter/lib/src/widgets/widget_inspector.dart:290:11:
Hint: Overriding 'noSuchMethod' causes the compiler to generate more code and prevents the compiler from doing some optimizations.
Consider removing this 'noSuchMethod' implementation.
dynamic noSuchMethod(Invocation invocation) {
^
Compiled 42,896,952 input bytes (8,517,245 characters source) to 1,552,488 characters JavaScript in 7.40 seconds using 617.750 MB of memory
[ +22 ms] dart2js: Complete
[ +354 ms] web_release_bundle: Starting due to {}
[ +76 ms] shaderc command: [/Applications/flutter/bin/cache/artifacts/engine/darwin-x64/impellerc, --sksl, --iplr, --json, --sl=..build/assets/shaders/ink_sparkle.frag,
--spirv=..build/assets/shaders/ink_sparkle.frag.spirv, --input=/Applications/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag, --input-type=frag,
--include=/Applications/flutter/packages/flutter/lib/src/material/shaders, --include=/Applications/flutter/bin/cache/artifacts/engine/darwin-x64/shader_lib]
[ +10 ms] Running command: /Applications/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /Applications/flutter/bin/cache/artifacts/engine/darwin-x64/const_finder.dart.snapshot --kernel-file
/Users/antonio/Documents/Progetti/test_output/.dart_tool/flutter_build/8ef3e3f8fa98e7201dca5d5080bf0168/app.dill --class-library-uri package:flutter/src/widgets/icon_data.dart --class-name IconData
--annotation-class-name _StaticIconProvider --annotation-class-library-uri package:flutter/src/widgets/icon_data.dart
[ +792 ms] Running font-subset: /Applications/flutter/bin/cache/artifacts/engine/darwin-x64/font-subset ..build/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
/Users/antonio/.pub-cache/hosted/pub.dev/cupertino_icons-1.0.8/assets/CupertinoIcons.ttf, using codepoints 62629 62419 62415 62318 optional:32
[ ] Running font-subset: /Applications/flutter/bin/cache/artifacts/engine/darwin-x64/font-subset ..build/assets/fonts/MaterialIcons-Regular.otf
/Applications/flutter/bin/cache/artifacts/material_fonts/MaterialIcons-Regular.otf, using codepoints 57415 57490 62832 57706 58332 58727 57496 57694 57695 57657 57882 57504 61453 57634 57498 57926 57704 57491
61061 61060 62834 62833 59283 59282 57499 57500 61069 61068 62842 62841 59291 59290 58011 58012 61575 61576 63348 63349 59797 59798 58372 58370 61930 61927 63708 63705 60157 60154 58771 58189 62328 61752
983402 63526 60555 59975 57502 58814 58813 57846 57862 57686 61764 57402 optional:32
[ +16 ms] Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 7760 bytes (99.5% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when
building your
app.
[ ] Font asset "CupertinoIcons.ttf" was tree-shaken, reducing it from 257628 to 1172 bytes (99.5% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your
app.
[ +3 ms] web_release_bundle: Complete
[ +52 ms] web_service_worker: Starting due to {}
[ +167 ms] web_service_worker: Complete
[ +128 ms] Persisting file store
[ +3 ms] Done persisting file store
[ +9 ms] Compiling lib/main.dart for the Web... (completed in 15,3s)
[ ] ✓ Built ..build
[ +23 ms] "flutter web" took 15.574ms.
[ +21 ms] Running 0 shutdown hooks
[ ] Shutdown hooks complete
[ +261 ms] exiting with code 0
from flutter.
Oh interesting, I did see that, but we have two sites, an AngularDart site that's stuck in the stone age and a Flutter web app. I need to run both versions on my machine. Is there a way around that?
from flutter.
@cmarques2 you can use FVM (Flutter Version Manager) to manage different versions of Flutter and switch to one of them whenever you need.
from flutter.
@cmarques2 I also can't reproduce this issue. Please try re-setting dart
env path as @Bestfootballer's suggestion to see if it works for you.
from flutter.
Related Issues (20)
- Run all flutter/packages macOS tests using Xcode 16 and iOS 18 simulator
- Run all flutter/engine macOS tests using Xcode 16 and iOS 18 simulator
- Update .ci.yaml in flutter/flutter to use Xcode 16 and macOS 14
- [webview_flutter_web] Migration to package:web needed for wasm HOT 1
- MouseRegion behavior is inconsistent when upgrading from 3.16.9 to 3.22.1 HOT 5
- ModalRoute Rebuilds Transition Widgets Every Frame HOT 2
- linux-51 is dead. HOT 1
- [process] Adjust Release Process to Include Wiki Updates for Hotfixes
- Issue with third-party keyboards initial popup height in WebView on iOS 17.x HOT 1
- webview_flutter: loadHtmlString Unable to correctly parse image address HOT 3
- [camera] permission denied error when using camera ^0.11.0 with permission_handler latest plugin for storage permission in android 10. HOT 9
- crashed on ios old device (low memory?) HOT 2
- Elevation of Banner widget is hard code HOT 3
- [local_auth] [android] get 'not_enrolled' for locked_out times after first get 'locked_out' by too many failed attempts on Android HOT 6
- Listen events from flutter webview to flutter mobile app HOT 1
- Unexpected Aligment in SelectionArea on Flutter Web HOT 2
- HardwareKeyboard.instance.isControlPressed not working for right control key on macOS HOT 1
- How to deal with client side caching on web HOT 4
- flutter doctor -v Error HOT 1
- [local_auth][iOS] Plugin throw NotAvailable exception in cases of No Permission, Lockout, and Face not recognized HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.