简体   繁体   English

android studio中flutter和dart的插件问题

[英]plugin issue of flutter and dart in android studio

output after i clicked to install plugin i have recently updated android studio to 3.4 because of that there is problem in plugin .It says flutter plugin is not compatible with this version of android studio .我点击安装插件后的输出 我最近将 android studio 更新到 3.4,因为插件有问题。它说 flutter 插件与这个版本的 android studio 不兼容。 how Can i solve this issue ?我该如何解决这个问题?

Update Flutter plugin to latest(34.0.2) version.将 Flutter 插件更新到最新(34.0.2)版本。

How I update flutter plugin version in MacOS:我如何在 MacOS 中更新 Flutter 插件版本:

  • Android Studio -> Preference Android Studio -> 偏好
  • Select plugins in sidebar在侧边栏中选择插件
  • Select flutter and click update button.选择颤振并单击更新按钮。
  • File -> Invalidate Caches & Restart.文件 -> 使缓存无效并重新启动。

Installed plugin version in Android Studio Android Studio 中安装的插件版本

  • Dart version : 183.5901飞镖版本:183.5901
  • Flutter : 34.0.2颤振:34.0.2

Seems the issue has been fixed.似乎问题已得到解决。 I updated the plugins and they're all working as they're supposed to.我更新了插件,它们都按预期工作。

Resolved this on android studio.在 android studio 上解决了这个问题。

  1. click on file on android studio UI单击android studio UI上的文件
  2. Go to settings and click on plugins转到设置并单击插件
  3. Click on installed tab单击已安装选项卡
  4. In the middle task pane, look for flutter and Dart and then click on update.在中间的任务窗格中,查找 flutter 和 Dart,然后单击更新。
  5. Restart android studio.重启安卓工作室。

It seems like both the latest Dart and Flutter plugins are't compatible with Android Studio 3.4.最新的 Dart 和 Flutter 插件似乎都与 Android Studio 3.4 不兼容。 I just opened up an Issue on GitHub , I see that you are also running on Linux like me, this may be the issue?我刚刚在 GitHub 上打开了一个问题,我看到你也和我一样在 Linux 上运行,这可能是问题吗?

Actually uninstalling, invalidating caches and installing the Flutter and Dart plugins again fixed the problem.实际卸载、使缓存失效并再次安装 Flutter 和 Dart 插件解决了该问题。 This issue didn't happen for Intellij Idea so I'm guessing the problem is with Android Studio. Intellij Idea 没有发生这个问题,所以我猜问题出在 Android Studio 上。

Android Studio -> File -> Invalidate Caches/Restart Android Studio -> 文件 -> 使缓存无效/重启

then然后

  • flutter clean扑干净

if problem is not resolved, Uninstall plugins then reinstall them.如果问题没有解决,请卸载插件然后重新安装它们。 if that does not solve your problem.如果这不能解决您的问题。 then run a command然后运行一个命令

  • flutter upgrade颤振升级

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM