Lim
Lim

Reputation: 779

No Connected Devices Found in a Flutter App in Android Studio

I read StackOverflow questions including the following ones:

BUT, I couldn't solve my issue....... :-(


My Flutter folder structure

My Project folder location : D:\__GitHub


Flutter SDK Setup Steps


Launch an AVD in the emulator


enter image description here

enter image description here

enter image description here


Flutter Doctor

=> I installed "Dart" & "Flutter" plugins. So, I don't know why the error message says that those plugins are not installed. (This answer says just ignore the error message. So, I did so.) enter image description here


QUESTION! How could I connect a device to this project?


Upvotes: 4

Views: 5007

Answers (1)

Lim
Lim

Reputation: 779

I finally solved the issue !!!

The following is steps I took to solve the problem:

  1. Deleted Android Studio and all of related folders in the computer.

2-1. Create "src" folder in the C drive.

2-2. C:\src> git clone https://github.com/flutter/flutter.git -b stable

2-1. Type "Environment Variables" in the search box in your computer. 2-2. Under "System Variables > Path", add "C/src/flutter/bin".


  1. Install "Android Studio"

3-1. Android Studio Intro Page > Configure > SDK Manager

enter image description here

enter image description here

enter image description here

3-2. Android Studio > Configure > Plugins > Browse Repositories (Install Dart & Flutter) enter image description here


  1. Go to "C:\src\flutter".

4-1. Run "flutter doctor --android-licenses"

4-2. Run "flutter channel beta"

4-3. Run "flutter upgrade"

enter image description here


  1. Type "Environment Variables" in the search box in your computer.

5-2. Under "System Variables > Path", add the following:

  • C:\Users\USER\AppData\Local\Android\Sdk
  • C:\Users\USER\AppData\Local\Android\Sdk\platform-tools
  • C:\Users\USER\AppData\Local\Android\Sdk\tools

5-3. Under "System Variables", add the following:

  • Variable Name : "ANDROID_SDK_ROOT"
  • Variable Value : "C:\Users\USER\AppData\Local\Android\Sdk"

  1. Go to "C:\src\flutter". 6-1. Run "flutter config --android-sdk C:\Users\USER\AppData\Local\Android\Sdk"

  1. Open Android Studio.

7-1. Ctrl + Shift + Alt + S > Project Settings > Project > Change "<No SDK>" to the latest version. enter image description here

7-2. Click "AVD Manager" icon. enter image description here

7-3. Click "Launch this AVD in the emulato" icon enter image description here


  1. Success!

enter image description here

enter image description here

Upvotes: 5

Related Questions