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
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.
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.
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
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
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 .