无法读取'ErrorHandlingFile'的文件实例,即使它存在.请验证该文件是否具有读取权限,然后重试 [英] Couldn't read file Instance of 'ErrorHandlingFile' even though it exists. Please verify that this file has read permission and try again
问题描述
由于以下错误,我的Flutter应用无法编译:
My Flutter App is not compiling because of this error:
无法读取'ErrorHandlingFile'的文件实例,即使它存在.请验证该文件是否具有读取权限,然后重试
Couldn't read file Instance of 'ErrorHandlingFile' even though it exists. Please verify that this file has read permission and try again
我厌倦了切换频道和更改版本,但是什么都没做.
I tired switching channels and changing versions but nothing has worked yet.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.13.6, on Mac OS X 10.15.1 19B88, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[!] Android Studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
✗ Android Studio not found at /Applications/Android/Contents
[!] IntelliJ IDEA Community Edition (version 2019.2.3)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.36.1)
[✓] Connected device (3 available)
! Doctor found issues in 2 categories.
有什么想法吗?
推荐答案
升级到Beta频道后出现相同的问题.
Had the same problem after upgrade to beta channel.
发现此错误消息只是冰山一角,真正的问题出在您的其中一个插件上.
Found that this error message just a top of an iceberg, real problem is in one of your plugins.
阅读此问题中的讨论,以手动调试应用程序或等待<一个href ="https://github.com/flutter/flutter/pull/48104" rel ="nofollow noreferrer">修复,该错误会导致相应的错误消息.
Read the discussion in this issue to manually debug your application or wait for fix which will result in an appropriate error message.
如果幸运的话-简单的 flutter pub升级
将为您的项目解决问题.
If you are lucky - simple flutter pub upgrade
will solve the issue for your project.
否则,作为修补程序,您可以降级Flutter版本.
If not, as a hot-fix you can downgrade your flutter version.
这篇关于无法读取'ErrorHandlingFile'的文件实例,即使它存在.请验证该文件是否具有读取权限,然后重试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!