Closed cornerplotter closed 6 months ago
This is a plugin exception as i last checked try downgrading to flutter plugin 78 or 77
Thanks @AbdeMohlbi. I tried downgrading to 3.19.5 - got same number of errors. Tried downgrading to 3.19.4 using git checkout 3.19.4, now suck in a loop of:
^^^^^^^^^^^
Error: Unable to create dart snapshot for flutter tool. Building flutter tool... Running pub upgrade... Resolving dependencies... (2.0s) Got dependencies. ../../AppData/Local/Pub/Cache/hosted/pub.dev/vm_service_interface-1.0.0/lib/src/service_extension_registry.dart:6:8: Error: Dart library 'dart:html' is not available on this platform. import 'dart:html'; ^ Context: The unavailable library 'dart:html' is imported through these packages:
flutter_tools.dart => package:flutter_tools => package:dwds => package:vm_service_interface => dart:html
Detailed import paths for (some of) the these imports:
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/dwds_vm_client.dart => package:dwds/src/services/chrome_proxy_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/dwds_vm_client.dart => package:dwds/src/services/debug_service.dart => package:dwds/src/services/chrome_proxy_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/dwds_vm_client.dart => package:dwds/src/services/debug_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/dwds_vm_client.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/services/chrome_proxy_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/services/debug_service.dart => package:dwds/src/services/chrome_proxy_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/services/debug_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/chrome_proxy_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/handlers/dev_handler.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/dwds_vm_client.dart => package:dwds/src/services/chrome_proxy_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/handlers/dev_handler.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/dwds_vm_client.dart => package:dwds/src/services/debug_service.dart => package:dwds/src/services/chrome_proxy_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/handlers/dev_handler.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/dwds_vm_client.dart => package:dwds/src/services/debug_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/handlers/dev_handler.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/dwds_vm_client.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/handlers/dev_handler.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/services/chrome_proxy_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/handlers/dev_handler.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/services/debug_service.dart => package:dwds/src/services/chrome_proxy_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/handlers/dev_handler.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/services/debug_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/handlers/dev_handler.dart => package:dwds/src/connections/debug_connection.dart => package:dwds/src/services/chrome_proxy_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/handlers/dev_handler.dart => package:dwds/src/dwds_vm_client.dart => package:dwds/src/services/chrome_proxy_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/handlers/dev_handler.dart => package:dwds/src/dwds_vm_client.dart => package:dwds/src/services/debug_service.dart => package:dwds/src/services/chrome_proxy_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/handlers/dev_handler.dart => package:dwds/src/dwds_vm_client.dart => package:dwds/src/services/debug_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/handlers/dev_handler.dart => package:dwds/src/dwds_vm_client.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
flutter_tools.dart => package:flutter_tools/executable.dart => package:flutter_tools/src/isolated/resident_web_runner.dart => package:dwds/dwds.dart => package:dwds/dart_web_debug_service.dart => package:dwds/src/handlers/dev_handler.dart => package:dwds/src/services/app_debug_services.dart => package:dwds/src/dwds_vm_client.dart => package:dwds/src/services/chrome_proxy_service.dart => package:vm_service_interface/vm_service_interface.dart => package:vm_service_interface/src/vm_service_interface.dart => package:vm_service_interface/src/service_extension_registry.dart => dart:html
...
../../AppData/Local/Pub/Cache/hosted/pub.dev/webdriver-3.0.3/lib/src/async/target_locator.dart:21:9: Error: Type 'WebDriver' not found.
final WebDriver _driver;
^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/webdriver-3.0.3/lib/src/async/target_locator.dart:62:23: Error: Type 'Window' not found.
Future
The problem is not in flutter it's in the plugin try to install another Android studio flutter plugin
'io.flutter 79.0.1' try using an older version of this In this website There are all versions of the plugin try using another version else try to open the Android studio in the project then clean the ide and refresh everything
Closing this as a duplicate of https://github.com/flutter/flutter-intellij/issues/7350.
In the future, please report issues with the IntelliJ plugin on the flutter-intellij repo.
Thank you
Didn't know I was using intellij... whatever that is :-)
Try using 78 i think it has not this problem
Didn't know I was using intellij... whatever that is :-)
Android Studio is built on top of IntelliJ (an IDE from jetbrains)
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
Was trying to run the default/sample main.dart in Android Studio. I have previously run tutorials from YouTube: https://www.youtube.com/watch?v=TSIhiZ5jRB0&t=559s suddenly everything started to error.
Removed all projects started again. 6668 lines of errors remain. This is painful!
Oh yes, and the emulator keeps crashing. Reverting to an earlier version from the Emulator Download Archives doesn't help.
Version information
Android Studio
Iguana | 2023.2.1 Patch 2
• Flutter pluginio.flutter 79.0.1
• Dart plugin232.10313
Error getting Flutter sdk information.
Exception
null
main_dart_errors.txt