-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run a Flutter app because <no devices> even Device File Explorer can detect it #2084
Comments
Exit and start Android Studio again can solve the issue |
Does this happen consistently? Does it get discovered after being unplugged and reconnected? Thanks for the report! |
Flutter doctor says
Fix that by doing this flutter doctor --android-licenses |
I have the same problem on Android Studio 3.1, and Intellij 2018.1. This happens on my linux machine, on my mac os laptop it works as expected.
|
I had the same problem and I resolved uninstalling Android Studio (version 3.0). The two versions can not exist at the same time. |
My android project can connect my phone , but The Flutter project can't connect my phone. show "no devices" |
The same issue ! I can see my device using this command: eirot@eirot-Precision-T1700:~/flutter_sdk_linux/flutter/bin$ ./flutter devices SUGAR S20 • 3bc622a8 • android-arm64 • Android 8.1.0 (API 27) And can also use "flutter run" command to install flutter app successfully, but Android studio still show "". Android studio version : flutter plugin version : flutter sdk version : |
My android project can connect my phone , but The Flutter project can't connect my phone. show "no devices" |
I have the same problem on Ubuntu |
Experiencing this on Ubuntu |
I also have this problem on Mac, with such configuration:
Those devices suddenly disappeared from Android Stuido, but were available before. @edit: |
I had the same problem on Windows 10 with Android SDK installed to a 'non-standard' location not on C:\ Fixed by setting ANDROID_HOME environment variable to the SDK path (E:\AndroidSDK in my case) Android Studio then found the device and launched flutter app on the device. I'm guessing the flutter plugin doesn't query AndroidStudio for the SDK location? |
Similar. I usually have 2 Android Studio windows open, 1 with a flutter app, 1 with a plain Android app. Sometimes Fixed by calling "flutter devices" in AS's Terminal at the bottom.
|
I was able to fix this by doing the following advice found in this stackoverflow question: https://stackoverflow.com/a/51644461/3268303
set the --android-sdk in the flutter config and now I can deploy directly to android devices from Android Studio |
Fixed it by following dazza5000's solution. Thank you! |
My Flutter-Android Studio can't detect the device. Following is my flutter Doctor response -
|
Solved for me! |
dazza5000's solution is successful. It should be that the flutter plugin does not find the location of the android sdk. We only need to tell flutter the location of android sdk explicitly:
For example, my android sdk path is
The following is just an extension of the knowledge. You can see some parameters that are allowed to be configured and parameters that have already been configured by executing the
For example, configure the location of the gradle:
|
meet the same problem |
Same problem on Linux Mint. |
Had a similar problem on Xubuntu 18.04.1, Android Studio 3.2.1, Flutter 1.0.0, Dart 2.1.0. If the Android Studio wasn't running, As soon as I started Android Studio, It is as if Android Studio and terminal battle for the It seems it has been solved by running the command @dazza5000 suggested: I don't understand why it works, as |
solved! |
This is still a problem. Cannot find connected devices in Android Studio even though |
I believe this problem is described and solved here: https://stackoverflow.com/questions/50336530/cannot-run-flutter-app-on-android-emulator |
if |
Make sure USB Debugging is enabled on the phone too. |
I've got the same problem. The strange thing is that it was OK just minutes ago, and it doesn't show any devices now. Have tried all the above suggestions but no luck... |
And I just solved it by replugin the USB cable on the computer side... |
Dazza solution worked for me. |
iPhone simulator name was not showing coz I installed two xcode. I executed following command and it worked for me.
|
I too was seeing the In my case, the problem was that I had not set up the
Somehow, official documentation tend to forget about the |
I use debian 10.0.0. This work for me. |
one should update the android studio n plugin with latest version. |
Already Solved At https://icetutor.com/question/flutter-run-no-connected-devices/ |
it worked for me thank you |
i just kill server and start server by these commands: And then i restart my android studio and then its showing my devices everything is perfect. |
After trying everything suggested, solved my problem differently.
|
@dazza5000 workaround worked for me. Perhaps this should be documented in the known issues of the
I will gladly make a pull request with this included. |
In my case I restarted android studio and after waiting for some time IDE detected the device. |
I noticed if I have two instances of Android Studio opened, the Flutter instance does not register the devices. Closing the other instance and the devices immediately appeared. |
`PS C:\Users\lenovo> flutter doctor [√] Android toolchain - develop for Android devices (Android SDK version 29.0.3) ! Doctor found issues in 3 categories.` |
Great, i finally solved it! |
after closing the emulator, wiping out the android emulator on AVD worked for me. |
Was facing the same issue. |
In my case, I correct the flutter SDK path and it works for me :-) |
problem fixed here : https://youtu.be/TjQpLYz3kSE |
This comment was marked as spam.
This comment was marked as spam.
I am facing the same problem in a specific flutter project and other flutter project can identify the devices. |
Description
I plugged my device to my development laptop to run a Flutter app. My laptop is already allowed to connect to my mobile device.
However, the button Run does not allow me to deploy the app to the connected device because it thinks that there is no connected device. It is quite wrong. The tab Device File Explorer can browse files in the device already.
The
flutter
CLI tool can detect the connected device tooSteps to Reproduce
Screenshot: https://imgur.com/a/qEJrR
Version info
The text was updated successfully, but these errors were encountered: