Closed real1900 closed 3 years ago
this bug make my app could not debug in ios
Hi @real1900
Can you please provide your flutter doctor -v
, your flutter run --verbose
and your pubspec.yaml
.
Thank you
I have this problem too
My app works fine with flutter run --verbose but it doesn't work with the debug button in android studio which lets me to use break points
Same thing happens to me. Occasionally I get it working again by deleting the app from the phone and running flutter clean
but even that is only working intermittently...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.21.0-9.2.pre, on Mac OS X 10.15.6 19G2021, locale sv-SE)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location.
You may also want to add it to your PATH environment variable.
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.3.5)
[✓] Connected device (2 available)
Thank you @pedromassangocode
Hi @real1900
Are you able to reproduce the issue by running flutter run --verbose
?
Are you using VScode or Android Studio?
Hi, hitting this as well with Android Studio on Mac.
fluter doctor -v
[✓] Flutter (Channel beta, 1.22.0-12.1.pre, on Mac OS X 10.15.6 19G2021, locale en-GB)
• Flutter version 1.22.0-12.1.pre at /Users/vocom.studio/SW/flutter
• Framework revision 8b3760638a (2 days ago), 2020-09-15 17:47:13 -0700
• Engine revision 4654fc6cf6
• Dart version 2.10.0 (build 2.10.0-110.3.beta)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/vocom.studio/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.7, Build version 11E801a
• CocoaPods version 1.9.3
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] Connected device (1 available)
• Vojtech - iPhone (mobile) • 00008030-000C4C3C0213802X • ios • iOS 14.0
Had that with stable and iOS 13.7 device as well.
With flutter run --verbose
, it usually deploys fine.
I am running Android Studio
I also get the same behavior with VSCode
I noticed that you was running on a physical device, are you having the same issue using a simulator? What is the OS version of the device you are having this issue?
I also get the same behavior with Android Studio. But I only can reproduce when Run debug by IDE. If run by "flutter run -v", seem no this issue. BUT, I saw this log, I don't know if helpful. (app can use, bug log stuck at "Updating files.")
[ +65 ms] Updating files
[+239030 ms] Error writing "build/flutter_assets/images/btn_setting_n.png" to DevFS: HttpException: , uri = http://localhost:57657
Note: the "file path" different every times.
I have this problem as well. I do not get this issue on the simulator, but I do when running on an external ios device. I also get this issue on VS code
I’m unable to reproduce the issue to pinpoint the cause, but there are reports from several users. The issue needs further investigation.
I think it should be same issue, https://github.com/flutter/flutter/pull/66152
@pedromassangocode They way it messes up for me is that I connect my phone (iPhone SE first gen running iOS 13) to my computer. I do flutter run -d all
and it doesn't work for me at all. I would really appreciate someone to look into this or try to reproduce it as well because it's a pain to always use the simulator, especially with regard to features like camera, texting, etc...
Hi @hossam-zaki Please file a new issue for this and completely fill out the template. We don't track more than one problem in a GitHub issue as they may be duplicates of different existing issues, or may need different teams to look at them.
Updating title since this seems to be happening on VS code as well.
I agree with @dodatw, this looks like a duplicate of https://github.com/flutter/flutter/issues/65402
This should be alleviated with https://github.com/flutter/flutter/pull/66152, which is available on the master channel, and was just hotfixed to the beta channel (it's kind of weird but it hasn't made it to dev yet, but it will be there soon).
I have this problem as well.My flutter run --verbose
#1 DeviceManager._chooseOneOfAvailableDevices (package:flutter_tools/src/device.dart:288:7)
<asynchronous suspension>
#2 DeviceManager.findTargetDevices (package:flutter_tools/src/device.dart:276:43)
<asynchronous suspension>
#3 FlutterCommand.findAllTargetDevices (package:flutter_tools/src/runner/flutter_command.dart:1001:48)
#4 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:351:21)
<asynchronous suspension>
#5 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:933:11)
<asynchronous suspension>
#6 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:836:33)
<asynchronous suspension>
#7 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart)
#8 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#9 _rootRun (dart:async/zone.dart:1190:13)
#10 _CustomZone.run (dart:async/zone.dart:1093:19)
#11 _runZoned (dart:async/zone.dart:1630:10)
#12 runZoned (dart:async/zone.dart:1550:10)
#13 AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#14 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:825:20)
#15 CommandRunner.runCommand (package:args/command_runner.dart:197:27)
#16 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:335:21)
#17 _rootRunUnary (dart:async/zone.dart:1198:47)
#18 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#19 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#20 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#21 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#22 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#23 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
#24 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
#25 FlutterVersion.checkFlutterVersionFreshness (package:flutter_tools/src/version.dart)
#26 _rootRunUnary (dart:async/zone.dart:1198:47)
#27 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#28 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#29 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#30 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#31 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#32 Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
#33 _rootRun (dart:async/zone.dart:1190:13)
#34 _CustomZone.run (dart:async/zone.dart:1093:19)
#35 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#36 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
#37 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#38 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#39 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#40 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
Hi
Same issue here, I've switched on beta and master channels but still the same problem
How to fix ?
Thx
flutter clean invalidate cache and restart flutter pub get flutter run
Hi all,
I had the same situation today, and took me a few hours to find out the solution, and it was very simple.
I basically started building a loop, then got distracted with something else, and forgot to delete it.
So what caused my "Syncing files to device" not to finish, and my initial page to freeze, was this. I had an infinite loop in my Home initState.
Hope this helps someone.
This hot reload issue is still happening. It happens only on iOS device and iOS Simulator for me. I tried both Intel Mac and M1 Mac. I am using flutter 2.2.1. I have tried it with flutter 2.2.0. Same behavior.
Android device and Android Emulator are working fine with hot reload.
This hot reload issue is still happening. It happens only on iOS device and iOS Simulator for me. I tried both Intel Mac and M1 Mac. I am using flutter 2.2.1. I have tried it with flutter 2.2.0. Same behavior.
Android device and Android Emulator are working fine with hot reload.
+1
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
I see :
Running Xcode build... Xcode build done. 426.0s Installing and launching... Waiting for Suleman’s iPhone to report its views... Debug service listening on ws://localhost:59585/ws Syncing files to device Suleman’s iPhone ...
Flutter doctor shows:
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, 1.21.0-9.2.pre, on Mac OS X 10.15.5 19F101, locale en)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 11.7) [✓] Chrome - develop for the web [✓] Android Studio (version 4.0) [✓] VS Code (version 1.48.2) [✓] Connected device (4 available) ! Error: Suleman’s iPhone 6s is not connected. Xcode will continue when Suleman’s iPhone 6s is connected. (code -13)
• No issues found!