Unable to run Android Emulator, not applicable for “main.dart” configuration
See original GitHub issueWhen I click on my device Pixel 3, I get a message like “Not applicable for main.dart configuration”. I also displayed the device selection tab, there is an option for “Open Android Emulator: Pixel 3 API 29” but I couldn’t run my project, it still prompts “no device selected”. I’m sure that Project and Module SDKs are alright, I have enabled the Virtualization(VT), and installed HAXM a long time ago. Flutter doctor output is here, it’s issueless.
C:\Users\rmira>flutter doctor -v
[√] Flutter (Channel beta, 1.18.0-11.1.pre, on Microsoft Windows [Version 10.0.18363.836], locale en-US)
• Flutter version 1.18.0-11.1.pre at C:\flutter
• Framework revision 2738a1148b (2 weeks ago), 2020-05-13 15:24:36 -0700
• Engine revision ef9215ceb2
• Dart version 2.9.0 (build 2.9.0-8.2.beta)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\rmira\AppData\Local\Android\sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 46.0.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[√] IntelliJ IDEA Ultimate Edition (version 2019.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.3
• Flutter plugin version 45.1.2
• Dart plugin version 193.7361
[√] VS Code (version 1.45.1)
• VS Code at C:\Users\rmira\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.9.1
[√] Connected device (2 available)
• Web Server • web-server • web-javascript • Flutter Tools
• Chrome • chrome • web-javascript • Google Chrome 81.0.4044.138
• No issues found!
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Device not applicable for the "main.dart" configuration
After this, I was able to run main.dart with the emulator. enter ... in android studio, you can install the plugin from file...
Read more >[Solved]-Not applicable for the main.dart configuration-Flutter
[Solved]-Not applicable for the main.dart configuration-Flutter ... You might have missed setting the Project SDK. ... Under Project Settings > Project, make sure ......
Read more >Emulator field grayed out “not applicable for the main.dart ...
i installed Android studio, x code and flutter. the emulator field is grayed out and says "not applicable for the main.dart configuration". I ......
Read more >No Devices Found Android Studio | SOLVED - YouTube
nodevicesfound #solved #androidstudio #flutterNo devices found , not applicable for main.dart , devices not available in flutter android ...
Read more >Flutter Android Studio Troubleshooting: Could not Compile ...
This error also known as: Device selection on Android Studio is greyed out. Not applicable for the “main.dart” configuration. Could not ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey, guys, I went through the same error, fixed by adding the SDK into the IntelliJ project configuration, through the following:
First, you must add the Android SDK into the IntelliJ:
Project Structure > Project > Settings Project > Project SDK
You should use
C:\Users\rmira\AppData\Local\Android\sdk
, as it was shown in theflutter doctor
command, as for my computer, the path was/Users/%user%/Library/Android/sdk
.Second, you must fix the modules SDK:
Project Structure > Modules > Select module > Dependencies tab > Module SDK > Project SDK
After confirming, a few tasks will run and after they are done, you’ll be able to run both emulators.
I just fixed this problem as reinstalling Android Studio and toolchain for many times, it wasn’t locating adb. Thanks though.