将 flutter 升级到 1.11.0 后,它在尝试运行项目时显示以下错误。
Couldn't read file LocalFile: '/Users/h/flutter/.pub-cache/hosted/pub.dartlang.org/audio_recorder-1.0.1/android/src/main/kotlin/com/jordanalcaraz/audiorecorder/audiorecorder/AudioRecorderPlugin.kt' even though it exists. Please verify that this file has read permission and try again.
最佳答案
一位同事发现了这个:
https://github.com/ZaraclaJ/audio_recorder/issues/46
根据 DyaryRaoof 的说法,解决方案是:
我在主分支上。此错误出现在 iOS 中。
要解决它,您需要在 flutter 中找到您的 audio_recorder 插件。然后在android上更改它的最后一个子文件夹的名称。您必须将其从 audio_recorder 更改为 audiorecorder(删除下划线)。
或者只是等待包维护者解决该问题。
关于android-studio - Flutter 升级到 Flutter 1.11.0 (Mac OS) 后的 Flutter 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59122719/