Repository: flutter
Issue: `fluttter doctor` should check for incompatible adb in path
Labels: tool,t: flutter doctor,P3,team-tool,triaged-tool

I used the Android Virtual Device Manager to create a new x86 + 7.1.1 instance, with API 25.

```
~/tmp/testpixel $ flutter --version
Flutter • channel master • git@github.com:flutter/flutter.git
Framework • revision 80d578d93e (32 hours ago) • 2016-10-23 17:20:38
Engine • revision db12c5e621
Tools • Dart 1.21.0-dev.0.0
```

I've tried a few times, I can't get the starter app to start...

```
~/tmp/testpixel $ flutter -d An run
Launching loader on Android SDK built for x86...
--------- beginning of main
W/ActivityManager: Force removing ActivityRecord{9558fc1 u0 com.yourcompany.testpixel/org.domokit.sky.shell.SkyActivity t7}: app died, no saved state
Observatory listening on http://127.0.0.1:8100
Diagnostic server listening on http://127.0.0.1:8101
Syncing files to device...                               
Exception from flutter run: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:8100
dart:io                                          _HttpClient.putUrl
package:flutter_tools/src/devfs.dart 225         _DevFSHttpWriter._scheduleWrite.<async>
===== asynchronous gap ===========================
dart:async                                       Future.Future.microtask
package:flutter_tools/src/devfs.dart             _DevFSHttpWriter._scheduleWrite
package:flutter_tools/src/devfs.dart 218         _DevFSHttpWriter._scheduleWrites
package:flutter_tools/src/devfs.dart 206         _DevFSHttpWriter.write.<async>
===== asynchronous gap ===========================
dart:async                                       Future.Future.microtask
package:flutter_tools/src/devfs.dart             _DevFSHttpWriter.write
package:flutter_tools/src/devfs.dart 387         DevFS.update.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 540         DevFS._scanDirectory.<async>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/devfs.dart             DevFS.update
package:flutter_tools/src/hot.dart 357           HotRunner._updateDevFS.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/asset.dart 145         AssetBundle.build.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/asset.dart 291         _obtainLicenses.<async>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart               HotRunner._updateDevFS
package:flutter_tools/src/hot.dart 263           HotRunner._run.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 280         DevFS.create.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 133         ServiceProtocolDevFSOperations.create.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/vmservice.dart 582     VM.createDevFS.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/vmservice.dart 561     VM.invokeRpcRaw.<async>
dart:async                                       _SyncCompleter.complete
package:json_rpc_2/src/client.dart 175           Client._handleSingleResponse
package:json_rpc_2/src/client.dart 165           Client._handleResponse
dart:async                                       _StreamController.add
package:json_rpc_2/src/peer.dart 92              Peer.listen.<fn>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart               HotRunner._run
package:flutter_tools/src/hot.dart 150           HotRunner.run.<fn>
package:stack_trace                              Chain.capture
package:flutter_tools/src/hot.dart 149           HotRunner.run
package:flutter_tools/src/commands/run.dart 221  RunCommand.runCommand.<async>

Exception from flutter run: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:8100
dart:io                                          _HttpClient.putUrl
package:flutter_tools/src/devfs.dart 225         _DevFSHttpWriter._scheduleWrite.<async>
===== asynchronous gap ===========================
dart:async                                       Future.Future.microtask
package:flutter_tools/src/devfs.dart             _DevFSHttpWriter._scheduleWrite
package:flutter_tools/src/devfs.dart 218         _DevFSHttpWriter._scheduleWrites
package:flutter_tools/src/devfs.dart 206         _DevFSHttpWriter.write.<async>
===== asynchronous gap ===========================
dart:async                                       Future.Future.microtask
package:flutter_tools/src/devfs.dart             _DevFSHttpWriter.write
package:flutter_tools/src/devfs.dart 387         DevFS.update.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 540         DevFS._scanDirectory.<async>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/devfs.dart             DevFS.update
package:flutter_tools/src/hot.dart 357           HotRunner._updateDevFS.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/asset.dart 145         AssetBundle.build.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/asset.dart 291         _obtainLicenses.<async>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart               HotRunner._updateDevFS
package:flutter_tools/src/hot.dart 263           HotRunner._run.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 280         DevFS.create.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 133         ServiceProtocolDevFSOperations.create.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/vmservice.dart 582     VM.createDevFS.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/vmservice.dart 561     VM.invokeRpcRaw.<async>
dart:async                                       _SyncCompleter.complete
package:json_rpc_2/src/client.dart 175           Client._handleSingleResponse
package:json_rpc_2/src/client.dart 165           Client._handleResponse
dart:async                                       _StreamController.add
package:json_rpc_2/src/peer.dart 92              Peer.listen.<fn>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart               HotRunner._run
package:flutter_tools/src/hot.dart 150           HotRunner.run.<fn>
package:stack_trace                              Chain.capture
package:flutter_tools/src/hot.dart 149           HotRunner.run
package:flutter_tools/src/commands/run.dart 221  RunCommand.runCommand.<async>

Exception from flutter run: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:8100
dart:io                                          _HttpClient.putUrl
package:flutter_tools/src/devfs.dart 225         _DevFSHttpWriter._scheduleWrite.<async>
===== asynchronous gap ===========================
dart:async                                       Future.Future.microtask
package:flutter_tools/src/devfs.dart             _DevFSHttpWriter._scheduleWrite
package:flutter_tools/src/devfs.dart 218         _DevFSHttpWriter._scheduleWrites
package:flutter_tools/src/devfs.dart 206         _DevFSHttpWriter.write.<async>
===== asynchronous gap ===========================
dart:async                                       Future.Future.microtask
package:flutter_tools/src/devfs.dart             _DevFSHttpWriter.write
package:flutter_tools/src/devfs.dart 387         DevFS.update.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 540         DevFS._scanDirectory.<async>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/devfs.dart             DevFS.update
package:flutter_tools/src/hot.dart 357           HotRunner._updateDevFS.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/asset.dart 145         AssetBundle.build.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/asset.dart 291         _obtainLicenses.<async>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart               HotRunner._updateDevFS
package:flutter_tools/src/hot.dart 263           HotRunner._run.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 280         DevFS.create.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 133         ServiceProtocolDevFSOperations.create.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/vmservice.dart 582     VM.createDevFS.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/vmservice.dart 561     VM.invokeRpcRaw.<async>
dart:async                                       _SyncCompleter.complete
package:json_rpc_2/src/client.dart 175           Client._handleSingleResponse
package:json_rpc_2/src/client.dart 165           Client._handleResponse
dart:async                                       _StreamController.add
package:json_rpc_2/src/peer.dart 92              Peer.listen.<fn>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart               HotRunner._run
package:flutter_tools/src/hot.dart 150           HotRunner.run.<fn>
package:stack_trace                              Chain.capture
package:flutter_tools/src/hot.dart 149           HotRunner.run
package:flutter_tools/src/commands/run.dart 221  RunCommand.runCommand.<async>

Exception from flutter run: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:8100
dart:io                                          _HttpClient.putUrl
package:flutter_tools/src/devfs.dart 225         _DevFSHttpWriter._scheduleWrite.<async>
===== asynchronous gap ===========================
dart:async                                       Future.Future.microtask
package:flutter_tools/src/devfs.dart             _DevFSHttpWriter._scheduleWrite
package:flutter_tools/src/devfs.dart 218         _DevFSHttpWriter._scheduleWrites
package:flutter_tools/src/devfs.dart 206         _DevFSHttpWriter.write.<async>
===== asynchronous gap ===========================
dart:async                                       Future.Future.microtask
package:flutter_tools/src/devfs.dart             _DevFSHttpWriter.write
package:flutter_tools/src/devfs.dart 387         DevFS.update.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 540         DevFS._scanDirectory.<async>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/devfs.dart             DevFS.update
package:flutter_tools/src/hot.dart 357           HotRunner._updateDevFS.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/asset.dart 145         AssetBundle.build.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/asset.dart 291         _obtainLicenses.<async>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart               HotRunner._updateDevFS
package:flutter_tools/src/hot.dart 263           HotRunner._run.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 280         DevFS.create.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 133         ServiceProtocolDevFSOperations.create.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/vmservice.dart 582     VM.createDevFS.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/vmservice.dart 561     VM.invokeRpcRaw.<async>
dart:async                                       _SyncCompleter.complete
package:json_rpc_2/src/client.dart 175           Client._handleSingleResponse
package:json_rpc_2/src/client.dart 165           Client._handleResponse
dart:async                                       _StreamController.add
package:json_rpc_2/src/peer.dart 92              Peer.listen.<fn>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart               HotRunner._run
package:flutter_tools/src/hot.dart 150           HotRunner.run.<fn>
package:stack_trace                              Chain.capture
package:flutter_tools/src/hot.dart 149           HotRunner.run
package:flutter_tools/src/commands/run.dart 221  RunCommand.runCommand.<async>

Exception from flutter run: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:8100
dart:io                                          _HttpClient.putUrl
package:flutter_tools/src/devfs.dart 225         _DevFSHttpWriter._scheduleWrite.<async>
===== asynchronous gap ===========================
dart:async                                       Future.Future.microtask
package:flutter_tools/src/devfs.dart             _DevFSHttpWriter._scheduleWrite
package:flutter_tools/src/devfs.dart 218         _DevFSHttpWriter._scheduleWrites
package:flutter_tools/src/devfs.dart 206         _DevFSHttpWriter.write.<async>
===== asynchronous gap ===========================
dart:async                                       Future.Future.microtask
package:flutter_tools/src/devfs.dart             _DevFSHttpWriter.write
package:flutter_tools/src/devfs.dart 387         DevFS.update.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 540         DevFS._scanDirectory.<async>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/devfs.dart             DevFS.update
package:flutter_tools/src/hot.dart 357           HotRunner._updateDevFS.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/asset.dart 145         AssetBundle.build.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/asset.dart 291         _obtainLicenses.<async>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart               HotRunner._updateDevFS
package:flutter_tools/src/hot.dart 263           HotRunner._run.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 280         DevFS.create.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 133         ServiceProtocolDevFSOperations.create.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/vmservice.dart 582     VM.createDevFS.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/vmservice.dart 561     VM.invokeRpcRaw.<async>
dart:async                                       _SyncCompleter.complete
package:json_rpc_2/src/client.dart 175           Client._handleSingleResponse
package:json_rpc_2/src/client.dart 165           Client._handleResponse
dart:async                                       _StreamController.add
package:json_rpc_2/src/peer.dart 92              Peer.listen.<fn>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart               HotRunner._run
package:flutter_tools/src/hot.dart 150           HotRunner.run.<fn>
package:stack_trace                              Chain.capture
package:flutter_tools/src/hot.dart 149           HotRunner.run
package:flutter_tools/src/commands/run.dart 221  RunCommand.runCommand.<async>

Exception from flutter run: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:8100
dart:io                                          _HttpClient.putUrl
package:flutter_tools/src/devfs.dart 225         _DevFSHttpWriter._scheduleWrite.<async>
===== asynchronous gap ===========================
dart:async                                       Future.Future.microtask
package:flutter_tools/src/devfs.dart             _DevFSHttpWriter._scheduleWrite
package:flutter_tools/src/devfs.dart 218         _DevFSHttpWriter._scheduleWrites
package:flutter_tools/src/devfs.dart 206         _DevFSHttpWriter.write.<async>
===== asynchronous gap ===========================
dart:async                                       Future.Future.microtask
package:flutter_tools/src/devfs.dart             _DevFSHttpWriter.write
package:flutter_tools/src/devfs.dart 387         DevFS.update.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 540         DevFS._scanDirectory.<async>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/devfs.dart             DevFS.update
package:flutter_tools/src/hot.dart 357           HotRunner._updateDevFS.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/asset.dart 145         AssetBundle.build.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/asset.dart 291         _obtainLicenses.<async>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart               HotRunner._updateDevFS
package:flutter_tools/src/hot.dart 263           HotRunner._run.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 280         DevFS.create.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/devfs.dart 133         ServiceProtocolDevFSOperations.create.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/vmservice.dart 582     VM.createDevFS.<async>
dart:async                                       _SyncCompleter.complete
package:flutter_tools/src/vmservice.dart 561     VM.invokeRpcRaw.<async>
dart:async                                       _SyncCompleter.complete
package:json_rpc_2/src/client.dart 175           Client._handleSingleResponse
package:json_rpc_2/src/client.dart 165           Client._handleResponse
dart:async                                       _StreamController.add
package:json_rpc_2/src/peer.dart 92              Peer.listen.<fn>
===== asynchronous gap ===========================
dart:async                                       _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart               HotRunner._run
package:flutter_tools/src/hot.dart 150           HotRunner.run.<fn>
package:stack_trace                              Chain.capture
package:flutter_tools/src/hot.dart 149           HotRunner.run
package:flutter_tools/src/commands/run.dart 221  RunCommand.runCommand.<async>

Application finished.
```