i am trying to debug on a physical device a flutter app. During launch it freezes on:
Running Gradle task 'assembleDebug'...
i run the program with
flutter run -v
, everything works perfectly.
this is my flutter doctor
Doctor summary (to see all details, run flutter doctor -v): [✓]
Flutter (Channel stable, 3.3.7, on macOS 13.0.1 22A400 darwin-arm,
locale it-IT) [✓] Android toolchain - develop for Android devices
(Android SDK version 33.0.0-rc1) [✓] Xcode - develop for iOS and macOS
(Xcode 14.1) [✓] Chrome - develop for the web [✓] Android Studio
(version 2021.3) [✓] VS Code (version 1.73.1) [✓] Connected device (4
available) [✓] HTTP Host Availability
• No issues found!
during startup I get a white screen on the physical device, but I don't get errors of any kind.
help please?
it happened to me many times,
when that happened I use flutter clean and then close and reopen
vs code and most important I delete my old versions of the app this soluation works fine for me and I hope that helps you
Related
Today when I start the flutter app in Mac Book Pro M1(the code did not change and runs fine in the Old 2019 Mac Book Pro), shows error like this:
This will generate a JSON format file containing all messages that
need to be translated.
Launching lib/main.dart on iPhone 13 in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 35.1s
Exception: Unable to launch com.earth.dolphin on 1DF4FFBC-4606-4406-A67D-8A263A470676:
ProcessException: Process exited abnormally:
com.earth.dolphin: -1
2022-03-06 18:23:50.661 simctl[62639:2998773] apply_selection_policy_once: avoid use of removable GPUs (via com.apple.CoreSimulator.simctl:GPUSelectionPolicy->avoidRemovable)
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=3):
The request to open "com.earth.dolphin" failed.
The process did launch, but has since exited or crashed.
Command: /usr/bin/arch -arm64e xcrun simctl launch 1DF4FFBC-4606-4406-A67D-8A263A470676 com.earth.dolphin --enable-dart-profiling --enable-checked-mode --verify-entry-points --start-paused --observatory-port=0
Error launching application on iPhone 13.
why did this happen and what should I do to fix it? Seems no one facing the problem after searching from Google. This is the flutter info:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.2, on macOS 12.2.1 21D62 darwin-arm, locale en-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] Android Studio (version 2021.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.1)
[✓] VS Code (version 1.64.2)
[✓] Connected device (3 available)
The flutter tools aren't launching when I press the button on Android Studio, and I also get a warning when I use flutter run.
I've tried flutter clean, but this still happens on both the terminal and Android Studio flutter plugin.
flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale
en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] Android Studio
[✓] VS Code (version 1.54.3)
[✓] Connected device (2 available)
• No issues found!
Does anyone have suggestions on how to fix this?
Rebooting my computer fixed it.
I'm new to flutter web, I just created a sample portfolio site in a flutter. It came well but when I build the app it takes 10 seconds delay to startup even I hosted it to a server it takes some time to render. can anyone say why it is happening?
FLUTTER DOCTOR
venkat#venkat--linux:~/karthikha_photography$ flutter doctor Doctor
summary (to see all details, run flutter doctor -v): [✓] Flutter
(Channel master, 2.1.0-11.0.pre.145, on Linux, locale en_GB.UTF-8) [✓]
Android toolchain - develop for Android devices (Android SDK version
30.0.3) [✓] Chrome - develop for the web [✓] Android Studio (version 4.1) [✓] Connected device (1 available)
• No issues found!
gitrepo https://github.com/venki1410/karthikha_photography
only for mobile devices
Site url https://incommunicable-volu.000webhostapp.com/#/
I've recently updated Flutter to 1.25.0-8.1.pre in beta. I could run debug apk and build release. But, the release-apk doesn't work and it stuck on default splash screen. Where the problem lies in. Is there any such bug from Flutter?
flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.25.0-8.1.pre, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Chrome - develop for the web
[✓] Android Studio
[✓] IntelliJ IDEA Community Edition (version 2020.3)
[✓] VS Code (version 1.52.1)
[✓] Connected device (3 available)
• No issues found!
I just downgrade the flutter version to 1.24.0-10.2.pre which released on 11/19/2020 and retried building release apk. And it worked fine. Actually the problem lies with Flutter new update on beta. The corresponding issue : https://github.com/flutter/flutter/issues/72705
I am new to Flutter and I am creating a new project. I am running the app with "Run without debuging" and selecting the emulator "pixel XL API 30".
The icons of the emulator (plaz, reload, hot reload...) show up for 5 seconds and then disappear. The Vscode is not launching the app.
In the debug console I get the following error: "Exited (1)"
Unable to locate adb
I run flutter doctor -v:
[✓] Flutter (Channel stable, 1.20.1, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[✓] Android Studio (version 4.0)
[✓] Connected device (1 available)
• No issues found!
Someone know why can I not see my project in the emulator?
Thanks.