Issue 1:
Steps to Reproduce

Ran the Hello World guide, the app crashes when i run it in debug mode. But then i can start app the app normally and everything works fine, but i could not find a way to attach a debugger.

I am using a tablet: Lenovo TB3 710I

Logs

Exception from flutter run: FormatException: Bad UTF-8 encoding 0xb4
dart:convert/utf.dart 558 _Utf8Decoder.convert
dart:convert/string_conversion.dart 333 _Utf8ConversionSink.addSlice
dart:convert/string_conversion.dart 329 _Utf8ConversionSink.add
dart:convert/chunked_conversion.dart 92 _ConverterStreamEventSink.add
dart:async/stream_transformers.dart 119 _SinkTransformerStreamSubscription._handleData
package:stack_trace/src/stack_zone_specification.dart 107 StackZoneSpecification._registerUnaryCallback.<fn>.<fn>
package:stack_trace/src/stack_zone_specification.dart 185 StackZoneSpecification._run
package:stack_trace/src/stack_zone_specification.dart 107 StackZoneSpecification._registerUnaryCallback.<fn>
package:stack_trace/src/stack_zone_specification.dart 107 StackZoneSpecification._registerUnaryCallback.<fn>.<fn>
package:stack_trace/src/stack_zone_specification.dart 185 StackZoneSpecification._run
package:stack_trace/src/stack_zone_specification.dart 107 StackZoneSpecification._registerUnaryCallback.<fn>
dart:async/zone.dart 1158 _rootRunUnary
dart:async/zone.dart 1037 _CustomZone.runUnary
dart:async/zone.dart 932 _CustomZone.runUnaryGuarded
dart:async/stream_impl.dart 331 _BufferingStreamSubscription._sendData
dart:async/stream_impl.dart 258 _BufferingStreamSubscription._add
dart:async/stream_controller.dart 768 _StreamController&&_SyncStreamControllerDispatch._sendData
dart:async/stream_controller.dart 635 _StreamController._add
dart:async/stream_controller.dart 581 _StreamController.add
dart:io-patch/socket_patch.dart 1680 _Socket._onData
package:stack_trace/src/stack_zone_specification.dart 107 StackZoneSpecification._registerUnaryCallback.<fn>.<fn>
package:stack_trace/src/stack_zone_specification.dart 185 StackZoneSpecification._run
package:stack_trace/src/stack_zone_specification.dart 107 StackZoneSpecification._registerUnaryCallback.<fn>
package:stack_trace/src/stack_zone_specification.dart 107 StackZoneSpecification._registerUnaryCallback.<fn>.<fn>
package:stack_trace/src/stack_zone_specification.dart 185 StackZoneSpecification._run
package:stack_trace/src/stack_zone_specification.dart 107 StackZoneSpecification._registerUnaryCallback.<fn>
dart:async/zone.dart 1162 _rootRunUnary
dart:async/zone.dart 1037 _CustomZone.runUnary
dart:async/zone.dart 932 _CustomZone.runUnaryGuarded
dart:async/stream_impl.dart 331 _BufferingStreamSubscription._sendData
dart:async/stream_impl.dart 258 _BufferingStreamSubscription._add
dart:async/stream_controller.dart 768 _StreamController&&_SyncStreamControllerDispatch._sendData
dart:async/stream_controller.dart 635 _StreamController._add
dart:async/stream_controller.dart 581 _StreamController.add
dart:io-patch/socket_patch.dart 1247 _RawSocket._RawSocket.<fn>
dart:io-patch/socket_patch.dart 781 _NativeSocket.issueReadEvent.issue
dart:async/schedule_microtask.dart 41 _microtaskLoop
dart:async/schedule_microtask.dart 50 _startMicrotaskLoop
dart:isolate-patch/isolate_patch.dart 96 _runPendingImmediateCallback
dart:isolate-patch/isolate_patch.dart 149 _RawReceivePortImpl._handleMessage

Flutter Doctor

I cant run any flutter command from the IntelliJ terminal.

output:

flutter: command not found

Flutter --version output:

Flutter • channel master • https://github.com/flutter/flutter.git

Framework • revision 3150e3f (2 hours ago) • 2017-01-13 12:46:13

Engine • revision b3ed791

Tools • Dart 1.21.

Issue 2:
Steps to Reproduce

cd /examples/hello_world/

connect a physical Android device

flutter run

Output:

mit-macbookpro2:hello_world mit$ flutter run -d 00ca05b380789730
Launching lib/main.dart on Nexus 5X in debug mode...
Exception from flutter run: FormatException: Bad UTF-8 encoding 0xff
dart:isolate _RawReceivePortImpl._handleMessage

Building APK in debug mode (android-arm)... 5081ms
Installing build/app.apk... 2435ms
Syncing files to device... 3968ms

Running on an Android or iOS simulator does not throw the exception!

Flutter Doctor

Paste the output of running flutter doctor here.

$ flutter doctor
[✓] Flutter (on Mac OS, channel master)
• Flutter at /Users/mit/dev/github/flutter
• Framework revision 3a43fc88b6 (5 hours ago), 2017-01-31 23:32:10
• Engine revision 2d54edf0f9
• Tools Dart version 1.22.0-dev.9.1

[✓] Android toolchain - develop for Android devices (Android SDK 25.0.0)
• Android SDK at /Users/mit/Library/Android/sdk
• Platform android-25, build-tools 25.0.0
• ANDROID_HOME = /Users/mit/Library/Android/sdk
• Java(TM) SE Runtime Environment (build 1.8.0_112-b16)

[✓] iOS toolchain - develop for iOS devices (Xcode 8.2.1)
• XCode at /Applications/Xcode.app/Contents/Developer
• Xcode 8.2.1, Build version 8C1002

[✓] IntelliJ IDEA Ultimate Edition (version 2016.3.4)
• Dart plugin version 163.12753
• Flutter plugin version 0.1.8.1

[✓] Connected devices
• Nexus 5X • 00ca05b380789730 • android-arm • Android 7.0 (API 24)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 6.0 (API 23) (emulator)
$