Flutter Emulators - Unable to find Emulator sources - Android toolchain / Android SDK not found

preview_player
Показать описание
In this video I am showing a quick solution to the error: "Unable to find any emulator sources. Please ensure you have some Android AVD images available.", which comes after running the command: "flutter emulators". This error led to the fact that I was not able to start any emulator from my terminal in Android studio. Running Flutter doctor showed the real underlying problem: Android toolchain / Unable to locate Android SDK

- by Vladimir Heinz

Enjoy my videos!

Chapters:
00:00 - Intro
00:08 - Explanation - No Device Selected
00:30 - Running "flutter emulators"
00:38 - First underlying problem: Unable to find any emulator sources
00:50 - Running "flutter doctor"
00:57 - Second and real underlying problem: Android toolchain / Unable to locate Android SDK
01:14 - Where you can find the location of your Android SDK
01:30 - Copying my Android SDK path
01:34 - Pasting my Android SDK path into my terminal
01:37 - Running "flutter config --android-sdk + path"
01:50 - Restarting Android Studio to read the new settings
02:10 - Running: "flutter doctor" once again
02:20 - Running: "flutter emulators" once again
02:30 - All my emulators are available
02:38 - Running "flutter emulators --launch -emulator ID-"
02:43 - Emulator is running
02:46 - Android Studio immediately notices the running emulator
02:53 - Running my application in the emulator
03:10 - My Application now runs in the emulator
03:15 - Finish

#flutter #noemulators #androidstudio
Рекомендации по теме
Комментарии
Автор

Thank you so much, my new friend. I'd looked all over for a solution until I ran into your video. It worked "flawlessly" ... until ...
I ran the app and got a long list of errors .. thankfully ending with the version of Android Studio was out of sync with the command line tools (hard to believe).
But after editing the build.gradle file and updating compileSdkVersion from 29 to 31 the app finally ran.
Days like these ... ... ... David

davidlevine
Автор

Thanks dude! I was 95% of the way there, but just missed one crucial piece of information, and your video was a quick and easy way to get that information. Good job 👍

Micha-ohne-el
Автор

finally ! it's worth it! You saved my day, thank you!

amitoron
Автор

In my case it's again showing unable to locate sdk

attitudecorner