Android Studio stuck when creating new Flutter project

前端 未结 11 920
后悔当初
后悔当初 2021-01-17 12:52

I have installed Flutter on Windows and checked all is ok using flutter doctor. I imported the Flutter plugin.

Now, when I try to create a new Flutter app via Anroid

相关标签:
11条回答
  • 2021-01-17 13:43

    For windows 10 there is couple of solution here, I am sharing with here which is working for me.

    1. Set Flutter SDK path is present in AS Settings . Settings > Languages & Settings > Flutter > Flutter SDK Path

    2. Run Android Studio/IntelliJ in administrator mode

    3. Your project location path folder name is valid Dart package name.

    0 讨论(0)
  • 2021-01-17 13:43

    I have disabled the Antivirus(Quick Heal), and run the CMD as administrator and run "flutter" command. It's working. Then checked the "flutter doctor" command, It's also working fine.

    Then started the AS as administrator mode and create the flutter app and it's started working now.

    0 讨论(0)
  • 2021-01-17 13:46

    I had same issue on windows 10 . Make sure path of the Flutter SDK is present in AS Settings . Settings > Languages & Settings > Flutter > Flutter SDK Path

    0 讨论(0)
  • 2021-01-17 13:48

    I had the same issue on MacOS 10.13.4, when creating a new Flutter project on the Android Studio (3.1), the IDE got stuck, showing the phrase "building symbols" on the bottom of the window.

    When running the command flutter run on the cli, the message was: startup lock.

    then I removed the lock from the flutter sdk cache: rm ./bin/cache/lockfile

    this is an issue reported on https://github.com/flutter/flutter/issues/7768

    0 讨论(0)
  • 2021-01-17 13:49

    After selecting options and when "creating new Flutter project" appeared, end Android Studio process and re-run it then - instead of creating a project- choose Open Project and select the project folder that you created before .

    0 讨论(0)
提交回复
热议问题