I tried to set flutter on my computer with Windows OS. I installed Android Studio, Flutter SDK, Flutter and Dart plugins, and I want to run my apps on physical mobile device. But I do not know why I cant do it.
enter image description here
And this is the output of "flutter doctor" command:
enter image description here
Actually I do not know what to do next.
Related
Here are the phones
Here is the error message when I hover over the Nexus 6 phone
"Not applicable for main.dart configuration"
Image system is R. API is 30. Flutter doctor says there are no issues.
Running on macOS Catalina. Android Studio 4.0.1.
How do I get it to work?
Flutter in Android Studio doesn't use the regular Android Studio device selector (the one on the right that's grayed out) because you can also select iPhones as target, which Android Studio's selector cannot do. Disregard that device selector for Flutter development, it's not used. The first one alone determines the phone your Flutter app will run on.
sdk_gphone_<architecture> is the device fingerprint of an official Android emulator. Select your phone's fingerprint (it should be either "Nexus 6", or the Nexus 6's code name, which is "shamu") in the left dropdown menu instead to run it on that, or make sure you have no emulators running.
I want to start coding with flutter, so i decided to download android studio.I created an avd called "Pixel 2 API 28" with android pie. When i want to select the pixel 2 as the avd device, the programme tells me that theres no avd, but on the right i can see the avd i created. When i put my cursor on it, it says "not applicable for the main.dart configuration". i have HAXM installed and Hyper-V is disabled, but i also tried it with both being active. I used the default code, which appears when you launch android studio.
Please help!!!
Edit:
I somehow managed to select it now, but i get this error: Running multiple emulators with the same AVD is an experimental feature. Please use -read-only flag to enable this feature.
Try starting the emulator from avd and then check if the device is showing up there if not try running
flutter devices
If the device shows there you can try running
flutter run -d <your-device-name>
You can also check whether the android sdk is configured with flutter try running
flutter config --android-sdk /path/andriod/sdk
hope it helps
Close Android Studio and Run again as Administrator
This is Only the solution i got after working hard for 3 days.
Please Note: I tried several available solutions but none worked for me since yesterday hence posting this. I have also mentioned below what are things I have tried so far.
I am new to Android Studio and Flutter application and I am trying to build a simple Flutter app using the Android Studio.
I have downloaded and kept my flutter files in C:\src\flutter. Also added to Environment variables.
I have installed the Android Studio and also installed the Flutter plugin with the Dart.
I created the Virtual Emulator Device using the Tools->AVD Manager and choose the Nexus 6 with the Android 8.1
Created a simple project using the File->New Flutter Project->Flutter Application.
When I try to run this application I get the following error:
As you can see in the screenshot it shows that the No Devices in the emulator section not sure how to run it.
Things I have tried so far:
If I run flutter doctor then I get a tick for all the things except Connect Devices. My guess is that it is obvious because I have not connected any external device but using the emulators.
I tried to create the emulators using the command flutter emulators --create Nexus_6 and tried to launch it using the command flutter emulator launch.
I tried running the Android studio as an Administrator.
Restarted the system several times.
My adb.exe was crashing so updated the windows and replaced it with the new adb.exe as mentioned in one of the solutions.
My flutter emulators show following list in the command prompt:
I tried checking the folder in Appdata -> Local seems to be fine as per other mentioned answers.
When I run the Emulator using the AVD Manager from Android Studio I see that it is firing up the Android Emulator but it is not responding. In addition to this, I also observe in my task manager that process adb.exe(32 bit) is running whereas my WINDOW 8.1 is 64 bit. Is this expected?
I am not sure If I missed something here. Please help me on how to solve the issue.
Using below command on Flutter worked for me:
flutter config --android-sdk [android-sdk-path]
The path is usually C:\Users<username>\AppData\Local\Android\sdk
this path can be found from android studio - SDK manager also.
I am developing an flutter app. i want to debug in both android and ios at the same time.To run in ios i can use mac but how to pair it.
You can use below command :
flutter run -d all will hot-reload all devices when started in terminal and pressing "s"
But this option is not available in Android studio, here is an open issue for the same.
You can switch platform by using the Toggle Platform button of Flutter Inspector.
Every time when I plug my phone to the computer via USB cable to run my apps in Eclipse or Android studio IDE, it's not possible to execute the apps. And it gives the following error,
Android Studio:
enter image description here
Although I tried to kill and restart adb.exe in "Task-manager" or "command-line" the problem didn't solve. Even I created file restartADB in my sdk path\platform-tool and tried to execute it but I still got this error
Eclipse
enter image description here
And it's not possible for me to use Android virtual machine to test my apps