Код: Выделить всё
[ERROR:flutter/shell/common/shell.cc(117)] Dart Error: Can't load Kernel binary: Invalid SDK hash.
[ERROR:flutter/runtime/dart_isolate.cc(144)] Could not prepare isolate.
[ERROR:flutter/runtime/runtime_controller.cc(462)] Could not create root isolate.
[ERROR:flutter/shell/common/shell.cc(669)] Could not launch engine with configuration.
Код: Выделить всё
• Flutter version 3.19.6 on channel stable at /home/bluearc/local/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 54e66469a9 (2 weeks ago), 2024-04-17 13:08:03 -0700
• Engine revision c4cd48e186
• Dart version 3.3.4
• DevTools version 2.31.1
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✓] Chrome - develop for the web
• CHROME_EXECUTABLE = /usr/bin/google-chrome-stable
[✓] Linux toolchain - develop for Linux desktop
• clang version 17.0.6
• cmake version 3.29.2
• ninja version 1.11.1
• pkg-config version 2.1.0
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
[✓] Connected device (2 available)
• Linux (desktop) • linux • linux-x64 • Arch Linux 6.6.8-arch1-1
• Chrome (web) • chrome • web-javascript • Google Chrome 122.0.6261.111
[✓] Network resources
• All expected network resources are available.
Я изменил свой канал Flutter на основной, но это не помогло Не могу решить проблему.
Я также пытался переустановить Flutter SDK с помощью pacman, но обнаружил еще одну ошибку:
Код: Выделить всё
Unexpected Kernel Format Version 117 (expected 114)
#0 BinaryBuilder.readComponent. (package:kernel/binary/ast_from_binary.dart:692)
#1 Timeline.timeSync (dart:developer/timeline.dart:173)
#2 BinaryBuilder.readComponent (package:kernel/binary/ast_from_binary.dart:679)
#3 _InitializationFromSdkSummary._prepareSummary (package:front_end/src/fasta/incremental_compiler.dart:2503)
#4 _InitializationFromUri.initialize (package:front_end/src/fasta/incremental_compiler.dart:2577)
#5 IncrementalCompiler._ensurePlatformAndInitialize (package:front_end/src/fasta/incremental_compiler.dart:1383)
#6 IncrementalCompiler.computeDelta. (package:front_end/src/fasta/incremental_compiler.dart:270)
#7 CompilerContext.clear (package:front_end/src/fasta/compiler_context.dart:139)
#8 IncrementalCompiler.compile (package:vm/incremental_compiler.dart:77)
#9 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:610)
#10 listenAndCompile. (package:frontend_server/frontend_server.dart:1303)
the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.
Там я увидел вопрос поменьше: Невозможно загрузить двоичный файл ядра: неверный хэш SDK во Flutter, но есть что-то другое. Точно так же: когда я запускаю dart fix, я не получаю ошибки или у меня нет другого Dart
Я скоро исчерпаю срок. Большое спасибо за вашу помощь.
Подробнее здесь: https://stackoverflow.com/questions/784 ... d-kernel-b