flutter_boost icon indicating copy to clipboard operation
flutter_boost copied to clipboard

flutter attach 失败

Open OHeroJ opened this issue 7 years ago • 4 comments

升级适配到 1.9 的版本后,

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      AttachCommand._attachToDevice (package:flutter_tools/src/commands/attach.dart:330:9)
<asynchronous suspension>
#2      AttachCommand.runCommand.<anonymous closure> (package:flutter_tools/src/commands/attach.dart:171:19)
#3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:29)
<asynchronous suspension>
#4      _rootRun (dart:async/zone.dart:1124:13)
#5      _CustomZone.run (dart:async/zone.dart:1021:19)
#6      _runZoned (dart:async/zone.dart:1516:10)
#7      runZoned (dart:async/zone.dart:1463:12)
#8      AppContext.run (package:flutter_tools/src/base/context.dart:153:18)
<asynchronous suspension>
#9      AttachCommand.runCommand (package:flutter_tools/src/commands/attach.dart:170:19)
<asynchronous suspension>
#10     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:490:18)
#11     _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#12     _rootRunUnary (dart:async/zone.dart:1132:38)
#13     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#14     _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#15     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#16     Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#17     Future._completeWithValue (dart:async/future_impl.dart:522:5)
#18     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:552:7)
#19     _rootRun (dart:async/zone.dart:1124:13)
#20     _CustomZone.run (dart:async/zone.dart:1021:19)
#21     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#22     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#23     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#24     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#25     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#26     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)

OHeroJ avatar Oct 26 '19 03:10 OHeroJ

升级适配到 1.9 的版本后,

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      AttachCommand._attachToDevice (package:flutter_tools/src/commands/attach.dart:330:9)
<asynchronous suspension>
#2      AttachCommand.runCommand.<anonymous closure> (package:flutter_tools/src/commands/attach.dart:171:19)
#3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:29)
<asynchronous suspension>
#4      _rootRun (dart:async/zone.dart:1124:13)
#5      _CustomZone.run (dart:async/zone.dart:1021:19)
#6      _runZoned (dart:async/zone.dart:1516:10)
#7      runZoned (dart:async/zone.dart:1463:12)
#8      AppContext.run (package:flutter_tools/src/base/context.dart:153:18)
<asynchronous suspension>
#9      AttachCommand.runCommand (package:flutter_tools/src/commands/attach.dart:170:19)
<asynchronous suspension>
#10     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:490:18)
#11     _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#12     _rootRunUnary (dart:async/zone.dart:1132:38)
#13     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#14     _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#15     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#16     Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#17     Future._completeWithValue (dart:async/future_impl.dart:522:5)
#18     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:552:7)
#19     _rootRun (dart:async/zone.dart:1124:13)
#20     _CustomZone.run (dart:async/zone.dart:1021:19)
#21     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#22     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#23     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#24     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#25     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#26     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)

这个跟flutter版本有一定关系,跟flutter_boost 关系不大。( 个人看法,仅供参考) boost: flutter_1.9_upgrade , flutter: 1.9.1 hotfix.6, 运行flutter attach 命令虽然不报错, 但一直卡在Waiting for a connection from Flutter on xxx,

colorface avatar Oct 28 '19 03:10 colorface

升级适配到 1.9 的版本后,

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      AttachCommand._attachToDevice (package:flutter_tools/src/commands/attach.dart:330:9)
<asynchronous suspension>
#2      AttachCommand.runCommand.<anonymous closure> (package:flutter_tools/src/commands/attach.dart:171:19)
#3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:29)
<asynchronous suspension>
#4      _rootRun (dart:async/zone.dart:1124:13)
#5      _CustomZone.run (dart:async/zone.dart:1021:19)
#6      _runZoned (dart:async/zone.dart:1516:10)
#7      runZoned (dart:async/zone.dart:1463:12)
#8      AppContext.run (package:flutter_tools/src/base/context.dart:153:18)
<asynchronous suspension>
#9      AttachCommand.runCommand (package:flutter_tools/src/commands/attach.dart:170:19)
<asynchronous suspension>
#10     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:490:18)
#11     _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#12     _rootRunUnary (dart:async/zone.dart:1132:38)
#13     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#14     _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#15     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#16     Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#17     Future._completeWithValue (dart:async/future_impl.dart:522:5)
#18     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:552:7)
#19     _rootRun (dart:async/zone.dart:1124:13)
#20     _CustomZone.run (dart:async/zone.dart:1021:19)
#21     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#22     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#23     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#24     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#25     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#26     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)

这个跟flutter版本有一定关系,跟flutter_boost 关系不大。( 个人看法,仅供参考) boost: flutter_1.9_upgrade , flutter: 1.9.1 hotfix.6, 运行flutter attach 命令虽然不报错, 但一直卡在Waiting for a connection from Flutter on xxx,

运行 flutter attach --verbose 看看

OHeroJ avatar Oct 28 '19 05:10 OHeroJ

升级适配到 1.9 的版本后,

#0      throwToolExit (package:flutter_tools/src/base/common.dart:28:3)
#1      AttachCommand._attachToDevice (package:flutter_tools/src/commands/attach.dart:330:9)
<asynchronous suspension>
#2      AttachCommand.runCommand.<anonymous closure> (package:flutter_tools/src/commands/attach.dart:171:19)
#3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:29)
<asynchronous suspension>
#4      _rootRun (dart:async/zone.dart:1124:13)
#5      _CustomZone.run (dart:async/zone.dart:1021:19)
#6      _runZoned (dart:async/zone.dart:1516:10)
#7      runZoned (dart:async/zone.dart:1463:12)
#8      AppContext.run (package:flutter_tools/src/base/context.dart:153:18)
<asynchronous suspension>
#9      AttachCommand.runCommand (package:flutter_tools/src/commands/attach.dart:170:19)
<asynchronous suspension>
#10     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:490:18)
#11     _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#12     _rootRunUnary (dart:async/zone.dart:1132:38)
#13     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#14     _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#15     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#16     Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#17     Future._completeWithValue (dart:async/future_impl.dart:522:5)
#18     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:552:7)
#19     _rootRun (dart:async/zone.dart:1124:13)
#20     _CustomZone.run (dart:async/zone.dart:1021:19)
#21     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#22     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#23     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#24     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#25     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#26     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)

这个跟flutter版本有一定关系,跟flutter_boost 关系不大。( 个人看法,仅供参考) boost: flutter_1.9_upgrade , flutter: 1.9.1 hotfix.6, 运行flutter attach 命令虽然不报错, 但一直卡在Waiting for a connection from Flutter on xxx,

运行 flutter attach --verbose 看看

已经解决,我当前系统版本13.2.2 ,会卡在Waiting for a connection from Flutter on xxx, 换了13.1版本和12.4版本的均可以正常调试

colorface avatar Nov 15 '19 06:11 colorface

我是换了集成方式,不用官方的集成方式,就不会出现了

OHeroJ avatar Nov 27 '19 08:11 OHeroJ