Questions tagged [flutter-run]
The flutter-run tag has no usage guidance.
flutter-run
38
questions
380
votes
62
answers
594k
views
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.
...
296
votes
13
answers
94k
views
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....
101
votes
4
answers
195k
views
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 ...
15
votes
2
answers
10k
views
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... ...
10
votes
3
answers
816
views
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 ...
4
votes
1
answer
2k
views
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 '...
2
votes
3
answers
16k
views
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/...
2
votes
2
answers
4k
views
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 ...
2
votes
1
answer
257
views
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/...
2
votes
1
answer
2k
views
"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 • ...
2
votes
3
answers
3k
views
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:
↳
/flutter/....
2
votes
1
answer
5k
views
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 ...
2
votes
0
answers
432
views
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 ...
2
votes
0
answers
38
views
Does adding firebase plugins affects the way "flutter run" behaves? [closed]
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 ...
1
vote
2
answers
6k
views
How to run flutter app in iOS devices from windows
I’m windows 11 system user, i have iPhone device (i11).
How we can run flutter app directly in iPhone device?
What is the best solution to development and test flutter application in android and ios ...
1
vote
1
answer
2k
views
Gradle wrapper not found issue when building a flutter apk
I am getting below error when I am trying to build apk or run it on a simulator.
I tried with vs Code and Android Studio both, but the same error.
But when I am running the app on a browser or as a ...
1
vote
0
answers
49
views
../../../../../Developer/flutter/packages/flutter/lib/src/widgets/ throwing Error failed to Failed to compile application
I created and ran Flutter projects. but today, while I'm creating new Flutter projects. I'm getting this kind of error when doing flutter run, I updated my flutter with the latest version. What went ...
1
vote
1
answer
168
views
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:
'...
0
votes
2
answers
600
views
Flutter error while try to run in macbook m1
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
main.dart:1
Exception: The flutter tool cannot access the file or directory.
Please ensure that the SDK and/or project is installed in a ...
0
votes
1
answer
299
views
appbundle being generated with the empty String.fromEnvironment
I'm storing some settings in String.fromEnvironment('CONFIG_EX'), when I run the app in Debug or Profile mode everything works normally, but now I launched it on the PlayStore in Open Test and it's ...
0
votes
1
answer
630
views
flutter stop in Compiling, linking and signing when building
i am trying to run my flutter project and it stuck in Compiling, linking and signing... when using Flutter run --verbose
0
votes
1
answer
1k
views
Flutter Build failed
While building and running the Flutter mobile application with flutter --version
Flutter 2.0.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c5a4b4029c (3 days ago) • ...
0
votes
0
answers
10
views
How to Run Flutter Android Project Native Debug (android-> app module) with "--dart-define-file-from= config.json" config?
I can run my flutter project witth Android Studio with "--dart-define-file-from=" config and it works. But when I try to run same project's android module( for debugging native code I open ...
0
votes
1
answer
16
views
flutter run ProcessException: No such file or directory
I am getting following error while running my Flutter app on Android device. I am using latest Android Studio and Emulator as of today. App works fine on Web and iPad simulator.
Running Gradle task '...
0
votes
0
answers
18
views
flutter upgrade, and pub upgrade on android studio, Error "Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options."
i updated my flutter/ dart version on android studio after then i upgraded my dependencies using pub upgrade, then i ran flutter clean the flutter pub get. when i run my app i get an error
"Run '...
0
votes
0
answers
40
views
Exception: Flutter failed to run "/Users/minkhant/Documents/developement/mobile/android/gradlew
Exception: Flutter failed to run "/Users/minkhant/Documents/developement/mobile/android/gradlew --full-stacktrace --info -Pverbose=true -Ptarget-platform=android-arm64
-...
0
votes
1
answer
39
views
Flutter run error : path_provider_linux.dart Constant expression expected
When I try to run the Flutter project on the IOS simulator I am facing the following issue :
Error (Xcode): ../../../../.pub-cache/hosted/pub.dev/path_provider_linux-2.1.11/lib/src/path_provider_linux....
0
votes
0
answers
479
views
Getting 'compileFlutterBuildDebug' error when trying to run Flutter app in Android Studio - how to troubleshoot?
I am having trouble running my app on android studio as it keeps giving me 'compileFlutterBuildDebug' exception.
..
/AppData/Local/Pub/Cache/hosted/pub.dev/theme_provider-0.5.0/lib/src/widgets/...
0
votes
0
answers
76
views
While i am trying to build flutter App, I am getiing LINK1168 error when i am trying to run using windows
LINK : fatal error LNK1168: cannot open E:\c tuts\flutter_application_1\build\windows\runner\Debug\flutter_application_1.exe for writing [E:\c tuts\flutter_application_1\build\windows\runner\...
0
votes
1
answer
316
views
What is the reason for error of exit with code 1
Launching lib\main.dart on RMX3371 in debug mode...
[Fatal Error] flutter_embedding_debug-1.0.0-8f2221fbef28b478debb78dd233f5250b220ca99.pom:14:6: An invalid XML character (Unicode: 0x0) was found in ...
0
votes
0
answers
320
views
flutter app failing to run using iOS simulator
I am running into this error when trying to run my flutter app via iOS simulator
(it took 26 min to give this error)
[ +1 ms] export 'dart:js' show allowInterop, ...
0
votes
1
answer
342
views
flutter iOS build failing
I am trying to run my flutter app in VS CODE using the iOS simulator, but run into this error everything I try to run it.
code's output:
↳
Writing result bundle at path:
/var/folders/sq/...
0
votes
1
answer
185
views
Error: unable to locate asset entry in pubspec.yaml: "fonts/googlesansebold.ttf"
I am facing problem with running my app. please help me guys.
i tried to delete gradle and redownload it as recommended previously.
i am using windows, and using Pixel XL API 33 to run
[Error: unable ...
0
votes
1
answer
121
views
Flutter - build failed in
run code after one year then face this issue
when flutter run command then command response error
how can remove these error
also run command flutter create -t app
/C:/src/flutter/.pub-cache/hosted/...
0
votes
0
answers
1k
views
warning: [deprecation] JobIntentService in androidx.core.app has been deprecated
I am trying to run
flutter run
command but it's giving me warning: [deprecation] JobIntentService in androidx.core.app has been deprecated
My flutter version is 1.17.4
0
votes
0
answers
64
views
Flutter is not recognized as internal or external command after run without debugging
This problem occurs when i try to run application after doing some changes to the code. I try to run using vscode command Run Without Debugging and this problem occurs. It works when i delete sdk ...
0
votes
0
answers
60
views
Android Studio 4.1 Flutter doesn't recognizing android emuator
Flutter unable to run app
No connected devices found; please connect a device, or see flutter.dev/setup for getting started instructions.
-1
votes
2
answers
315
views
Error running flutter application on simulators
Failed to build iOS app
Error (Xcode): ../../../Developer/flutter/packages/flutter/lib/src/material/data_table.dart:1164:41:
Error: Member not found: 'Matrix4.identity'.
Could not build the ...