Reputation: 293
I just started app programming and I wanted to do so using flutter. But when I want to create a new flutter project, it takes eternal and doesn't finish. Tried all fixed, updating flutter and AS, running AS in Admin Mode (btw I'm using Win 10), creating the project offline, not doing so, reinstalling AS in a folder with a dart-compliant name, but one option I can't try: in the settings for new projects I can't set the standard path of the flutter and dart sdk. If anyone knows how to fix this, or, even better, how to create a flutter project, please describe it step by step, since I'm a complete beginner to app programming
Upvotes: 2
Views: 6590
Reputation: 71
For those viewing this question in 2021 and onwards, you need to do the following to get Flutter (version 2) to work in Android Studio (version 4<) on Windows.
Upvotes: 0
Reputation: 293
One solution was just running the flutter create
command. Although it kind of worked offline, I finally decided to create the flutter project online. Afterwards I opened it in AS without a problem or missing/corrupted files (so the issue should be with AS and flutter together). And even if it's kind of a workaround, it worked for me.
This is what I typed in the console:
flutter create --pub --no-offline --with-driver-test --template=app --description="Your description here." --org="yourdomainhere" --project-name="your_project_name_here" C:\src\flutter\flutter_projects\your_flutter_project
Upvotes: 1
Reputation: 557
Did you follow the guidelines correctly when creating a new Flutter project? Please follow this link step by step https://flutter.dev/docs/development/tools/android-studio
Upvotes: 1