Questions tagged [flutter-run]
35 questions
368
votes
61 answers
Message "flutter run: No connected devices"
I am trying to create a sample application with Flutter (fresh installation). Android Studio is also installed (fresh installation).
Here is the output of flutter run
flutter run
No connected devices.
The output of flutter doctor:
Doctor summary…

FULL STACK DEV
- 15,207
- 5
- 46
- 66
278
votes
12 answers
How can I check if a Flutter application is running in debug?
I'm looking for a way to execute code in Flutter when the app is in Debug mode. Is that possible in Flutter? I can't seem to find it anywhere in the documentation.
Something like this
If(app.inDebugMode) {
print("Print only in debug…

Kevin Walter
- 6,507
- 8
- 28
- 32
87
votes
5 answers
How do I run/test my Flutter app on a real device?
I want to run/test (not automated test) my Flutter app on a real iPhone and Android phone during development. However, Flutter docs seem to only document how to do it with the iOS simulator or Android emulators.
I think it's already a no-brainer for…

Noel Llevares
- 15,018
- 3
- 57
- 81
15
votes
2 answers
Flutter run - Failed to build iOS app - Command PhaseScriptExecution failed with a nonzero exit code
Here's an image version of the console output for the flutter run.
Here's an image version of the console output for flutter doctor -v.
Running flutter run gives me:
'''Downloading ios tools... …

programmer_horror
- 151
- 1
- 4
10
votes
3 answers
Stop Button not working for flutter in Android studio
The stop button not working and run button is disabled
See the following picture:
I am using android studio on Macbook pro with M1 Chip.
I downloaded the M1 chip-optimized Android studio.
When I run the flutter project on the Android emulator with…

Muhammad Ahmad Bilal
- 115
- 1
- 7
4
votes
1 answer
I'm trying to run the command 'flutter packages pub run build_runner build' and I'm getting an error as return, can someone help me?
I'm trying to run the command 'flutter packages pub run build_runner build' and I'm getting an error as return, can someone help me ??
This is my code
import 'package:chopper/chopper.dart';
part…

Jonatas Brito
- 41
- 4
2
votes
2 answers
Android Studio Emulator not showing up to run flutter app
I am trying to run my Flutter app in Android Studio. But when I try to select a device to launch, I am prompted to launch the Android Emulator, which is already running.
When running the flutter devices command, the following message is displayed:
•…
user21763309
2
votes
1 answer
I am using Zegocloud video classes in flutter app and getting this issue java.lang.UnsatisfiedLinkError: dlopen failed
java.lang.UnsatisfiedLinkError: dlopen failed: library "libRoomkitDC.so" not found
after this error the application closed unexpectedly.
E/AndroidRuntime( 4629): FATAL EXCEPTION: main
E/AndroidRuntime( 4629): Process: com.webbullindia.lms.ssa, PID:…

Sagar Singh
- 41
- 4
2
votes
3 answers
I have an error for import package in flutter
Tips:
(Sorry for mistakes. English isn't my native language)
(I'm new in flutter)
I have many errors in my flutter project. I think that's because of packages. when I write: import 'package:flutter/material.dart';, android studio draw a red line…

Ali sokhanvar
- 29
- 1
- 1
- 2
2
votes
3 answers
A lot of errors after upgrade to flutter 2.5.0
I have updated Flutter to 2.5.0 in my project and getting a lot of errors, for example:
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
…

Alexey Prilepskiy
- 21
- 3
2
votes
1 answer
flutter app doesn't run from VsCode, but it runs fine from terminal
iam a newbie to flutter and mobile development. I am facing a problem for the first time.
When I run my code through the terminal:
flutter run
But when I try to run it through VSCode - either I use with debugging or without debugging - it just…

aneebhiba614
- 33
- 1
- 5
2
votes
0 answers
Flutter Initialization failed
Flutter failed to initialized while I was run it. First, it gave me an error of java uses or overrides depreciated API. Recompile with xlint. deprecation for details.Happened after adding firebase core and firebase auth Flutter initialization failed…

Owen Alikula
- 408
- 3
- 11
2
votes
0 answers
Does adding firebase plugins affects the way "flutter run" behaves?
I created a flutter project and worked on it for a while and the compile time (flutter run) was okay but when I needed to use Firebase plugins the compile time was very slow, that is, I added the required dependencies from Firebase console to my…

Akindele Michael
- 86
- 3
- 10
1
vote
1 answer
"flutter run" not showing all devices that "flutter devices" shows
I am following this codelab with Flutter (fresh installation). Android Studio is also installed (fresh installation).
Here is the output of flutter devices
sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30)…

androidorb424
- 11
- 4
1
vote
1 answer
Flutter throws an error when running build or run
I keep getting this when I try to run or run a flutter project
/Users/user1/Projects/projectx/ios/Pods/FBSDKCoreKit_Basics/Sources/FBSDK
CoreKit_Basics/FBSDKUserDataStore.m:19:9: fatal error:
'FBSDKUserDataStore.h' file not found
#import…

Henry
- 45
- 1
- 10