gpt4 book ai didi

dart - Flutter 错误 - 内核二进制格式版本无效(找到 4 个,预期为 6 个)

转载 作者:IT王子 更新时间:2023-10-29 07:06:45 25 4
gpt4 key购买 nike

在升级 flutter 后运行我的应用程序时出现此错误。

错误:无效的内核二进制格式版本(找到 4 个,预期为 6 个)

我目前在 master,我尝试将分支切换到 beta`。仍然没有帮助。这是堆栈跟踪。

2018-05-28 15:22:46.214821+0530 Runner[579:57143] ../../third_party/dart/runtime/vm/kernel_binary.cc: 39: error: Invalid kernel binary format version (found 4, expected 6)
2018-05-28 15:22:46.214912+0530 Runner[579:57143] Dumping native stack trace for thread 7c03
2018-05-28 15:22:46.237923+0530 Runner[579:57143] [0x0000000100fda4a0] dart::Profiler::DumpStackTrace(void*)
2018-05-28 15:22:46.239415+0530 Runner[579:57143] [0x0000000100fda4a0] dart::Profiler::DumpStackTrace(void*)
2018-05-28 15:22:46.271484+0530 Runner[579:57143] [0x0000000000000000] Unknown symbol
2018-05-28 15:22:46.273617+0530 Runner[579:57143] [0x0000000100eda158] dart::kernel::Program::ReadFromBuffer(unsigned char const*, long, bool)
2018-05-28 15:22:46.273681+0530 Runner[579:57143] -- End of DumpStackTrace

这是 flutter doctor 的输出。

Running flutter doctor... Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel master, v0.4.5-pre.98, on Mac OS X 10.13.3 17D47, locale en-IN) [✗] 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.io/setup/#android-setup for detailed instructions).
If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location. [✓] iOS toolchain - develop for iOS devices (Xcode 9.2) [✗] Android Studio (not installed) [✓] IntelliJ IDEA Community Edition (version 2017.3.5) [✓] Connected devices (3 available)

! Doctor found issues in 2 categories.

有什么问题吗?请帮忙。

最佳答案

修复:删除你Flutter安装目录下的bin/cache目录,然后运行flutter doctor再试。通常,它将是 C:\src\flutter。

如果需要,升级 flutter。

关于dart - Flutter 错误 - 内核二进制格式版本无效(找到 4 个,预期为 6 个),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50563675/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com