gpt4 book ai didi

android - Flutter插件开发未解决引用: io

转载 作者:IT王子 更新时间:2023-10-29 07:17:15 27 4
gpt4 key购买 nike

这是我第一次尝试创建一个 flutter 插件,我从 android studio 创建了 flutter 插件项目并且它运行良好,当我尝试为 android 添加平台特定代码时我遇到了一些问题,在同一个项目平台特定代码编辑中快死了(没有 Lint )。我在android studio中导入了MyPluginProject/android,也有一些问题,

Unresolved reference: io

enter image description here

这是 flutter doctor 的输出

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.7.8+hotfix.2, on Linux, locale en_US.UTF-8)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[✓] Android Studio (version 3.4)
[✓] Connected device (1 available)

• No issues found!

最佳答案

按照 this issue 中的这些步骤解决了问题在 github 上。

  1. 删除项目中的.idea文件夹(不知道是否需要但是只是为了确定)
  2. 在 Android Studio 中点击 Open an existing Android studio project 并选择文件夹 your_plugin/example/android(打开 your_plugin/example/android 很重要 首先,然后是 your_plugin)。

关于android - Flutter插件开发未解决引用: io,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56965783/

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