Update to Android Studio 4.1 ,flutter plugin and dart plugin not Installed

风流意气都作罢 提交于 2020-12-02 07:04:23

问题


I have got a similar question like this. But this problem occurred after updating Android Studio to version 4.1 from version 4.0.

using flutter flutter doctor -v


回答1:


I solve this problem like this

Only for MacOS

$ ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1



回答2:


It is a flutter issue on 1.22 version, and happens after upgrading to Android Studio 4.1. It was already fixed on 1.23 version (dev channel). You can continue to run and work on your projects normally until this fix isn't ported to stable channel, or you can swith to dev channel and call flutter upgrade.




回答3:


Switch from Flutter 1.22.2 channel stable to channel dev and you're good to go.

Copy and paste this in your cmd:

flutter channel dev

flutter upgrade



回答4:


As said above, it is just a time-being issue. You can change channels by running flutter channel dev. To know available channels you can run flutter channel




回答5:


I had the same problem. What helped me:

  1. removing the old IDE configuration directory:

    rm -r .AndroidStudio4.0/
    
  2. let flutter know where Android Studio is installed, for example

    flutter config --android-studio-dir="/home/piotr/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6858069"
    
  3. switch to dev channel:

    flutter channel dev && flutter upgrade
    



回答6:


THIS IS SOLUTION FOR ME! flutter version 1.22.2 estable to dev




回答7:


Update the Android Studio to the latest version, then try to update the flutter version and build.gradle version




回答8:


This issue has happened due to the change in the configuration (config) directories in Android Studio version 4.1

You can read about it here

TLDR: Just copy the old files to the new directory and you're good to go

How I managed to fix it :

  1. On initial run , Android Studio 4.1 gives a popup to delete unused directories. DON'T DELETE IT . Press OK and proceed.Setup as usual

  2. Now go the directory where your old Android Studio files were present (Find them below)

    Windows: C:\Users\YourUserName\AppData\Roaming\AndroidStudioVersion

    Linux: ~/.config/AndroidStudioVersion

    macOS: ~/Library/Application Support/AndroidStudioVersion

  3. Keeping Android Studio open, Open your file manager and transfer all the old directories and files found in the directory specified in Step 2 above to the new config directory structure (Find them below)

Windows:C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudio4.1

Linux: ~/.config/Google/AndroidStudio4.1

macOS: ~/Library/Application Support/Google/AndroidStudio4.1

4.That's it. Switch to Android Studio and there should be a popup below to update to the latest versions of all plugins respectively




回答9:


The solution in Windows is quite simple, you just have to open AS and go to the 'Android SDK' part, then to 'SDK Tools'. Activate 'Show Package Details' and from there select 30.0.0 let it download and it works



来源:https://stackoverflow.com/questions/64395106/update-to-android-studio-4-1-flutter-plugin-and-dart-plugin-not-installed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!