<p dir="auto">If you're in one of the demo app directories when you run <code class="notranslate">flutter analyze --flutter-repo</code>, it will include that directory twice (once because of the crawl, once because of the current directory having a package), which seems to result in duplicate errors sometimes? (The latter might be an analyzer bug.)</p>
<h2 dir="auto">command</h2>
<p dir="auto">flutter build apk</p>
<h2 dir="auto">exception</h2>
<p dir="auto">FormatException: FormatException: Bad UTF-8 encoding 0xa8 (at offset 165)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0      _Utf8Decoder.convert (dart:convert/utf.dart:568:13)
#1      _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:345:14)
#2      _Utf8ConversionSink.add (dart:convert/string_conversion.dart:341:5)
#3      _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:86:18)
#4      _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#5      _rootRunUnary (dart:async/zone.dart:1132:38)
#6      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#7      _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#8      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#9      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#10     _SyncStreamController._sendData (dart:async/stream_controller.dart:763:19)
#11     _StreamController._add (dart:async/stream_controller.dart:639:7)
#12     _StreamController.add (dart:async/stream_controller.dart:585:5)
#13     _Socket._onData (dart:io/runtime/binsocket_patch.dart:1721:41)
#14     _rootRunUnary (dart:async/zone.dart:1136:13)
#15     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#16     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#17     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#18     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#19     _SyncStreamController._sendData (dart:async/stream_controller.dart:763:19)
#20     _StreamController._add (dart:async/stream_controller.dart:639:7)
#21     _StreamController.add (dart:async/stream_controller.dart:585:5)
#22     new _RawSocket.&lt;anonymous closure&gt; (dart:io/runtime/binsocket_patch.dart:1283:33)
#23     _NativeSocket.issueReadEvent.issue (dart:io/runtime/binsocket_patch.dart:826:14)
#24     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#25     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#26     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#27     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)"><pre class="notranslate"><code class="notranslate">#0      _Utf8Decoder.convert (dart:convert/utf.dart:568:13)
#1      _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:345:14)
#2      _Utf8ConversionSink.add (dart:convert/string_conversion.dart:341:5)
#3      _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:86:18)
#4      _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#5      _rootRunUnary (dart:async/zone.dart:1132:38)
#6      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#7      _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#8      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#9      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#10     _SyncStreamController._sendData (dart:async/stream_controller.dart:763:19)
#11     _StreamController._add (dart:async/stream_controller.dart:639:7)
#12     _StreamController.add (dart:async/stream_controller.dart:585:5)
#13     _Socket._onData (dart:io/runtime/binsocket_patch.dart:1721:41)
#14     _rootRunUnary (dart:async/zone.dart:1136:13)
#15     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#16     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#17     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#18     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#19     _SyncStreamController._sendData (dart:async/stream_controller.dart:763:19)
#20     _StreamController._add (dart:async/stream_controller.dart:639:7)
#21     _StreamController.add (dart:async/stream_controller.dart:585:5)
#22     new _RawSocket.&lt;anonymous closure&gt; (dart:io/runtime/binsocket_patch.dart:1283:33)
#23     _NativeSocket.issueReadEvent.issue (dart:io/runtime/binsocket_patch.dart:826:14)
#24     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#25     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#26     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#27     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)
</code></pre></div>
<h2 dir="auto">flutter doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="�[32m[✓]�[39m Flutter (Channel beta, v1.0.0, on Microsoft Windows [Version 10.0.17134.407], locale zh-CN)
    �[32m•�[39m Flutter version 1.0.0 at E:\flutter\flutter_windows_v0.3.2-beta\flutter
    �[32m•�[39m Framework revision 5391447fae (7 days ago), 2018-11-29 19:41:26 -0800
    �[32m•�[39m Engine revision 7375a0f414
    �[32m•�[39m Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

�[32m[✓]�[39m Android toolchain - develop for Android devices (Android SDK 28.0.3)
    �[32m•�[39m Android SDK at C:\Users\sinosoft\AppData\Local\Android\Sdk
    �[32m•�[39m Android NDK location not configured (optional; useful for native profiling support)
    �[32m•�[39m Platform android-28, build-tools 28.0.3
    �[32m•�[39m ANDROID_HOME = C:\Users\sinosoft\AppData\Local\Android\Sdk
    �[32m•�[39m Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    �[32m•�[39m All Android licenses accepted.

�[32m[✓]�[39m Android Studio (version 3.2)
    �[32m•�[39m Android Studio at C:\Program Files\Android\Android Studio
    �[31m✗�[39m Flutter plugin not installed; this adds Flutter specific functionality.
    �[31m✗�[39m Dart plugin not installed; this adds Dart specific functionality.
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

�[33m[!]�[39m IntelliJ IDEA Ultimate Edition (version 2018.3)
    �[32m•�[39m IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.3
    �[31m✗�[39m Flutter plugin not installed; this adds Flutter specific functionality.
    �[31m✗�[39m Dart plugin not installed; this adds Dart specific functionality.
    �[32m•�[39m For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

�[32m[✓]�[39m VS Code, 64-bit edition (version 1.29.1)
    �[32m•�[39m VS Code at C:\Program Files\Microsoft VS Code
    �[32m•�[39m Flutter extension version 2.21.0

�[32m[✓]�[39m Connected device (1 available)
    �[32m•�[39m BKL AL00 • RKKDU18104007058 • android-arm64 • Android 9 (API 28)

�[33m!�[39m Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">�[32m[✓]�[39m Flutter (Channel beta, v1.0.0, on Microsoft Windows [Version 10.0.17134.407], locale zh-CN)
    �[32m•�[39m Flutter version 1.0.0 at E:\flutter\flutter_windows_v0.3.2-beta\flutter
    �[32m•�[39m Framework revision 5391447fae (7 days ago), 2018-11-29 19:41:26 -0800
    �[32m•�[39m Engine revision 7375a0f414
    �[32m•�[39m Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

�[32m[✓]�[39m Android toolchain - develop for Android devices (Android SDK 28.0.3)
    �[32m•�[39m Android SDK at C:\Users\sinosoft\AppData\Local\Android\Sdk
    �[32m•�[39m Android NDK location not configured (optional; useful for native profiling support)
    �[32m•�[39m Platform android-28, build-tools 28.0.3
    �[32m•�[39m ANDROID_HOME = C:\Users\sinosoft\AppData\Local\Android\Sdk
    �[32m•�[39m Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    �[32m•�[39m All Android licenses accepted.

�[32m[✓]�[39m Android Studio (version 3.2)
    �[32m•�[39m Android Studio at C:\Program Files\Android\Android Studio
    �[31m✗�[39m Flutter plugin not installed; this adds Flutter specific functionality.
    �[31m✗�[39m Dart plugin not installed; this adds Dart specific functionality.
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

�[33m[!]�[39m IntelliJ IDEA Ultimate Edition (version 2018.3)
    �[32m•�[39m IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.3
    �[31m✗�[39m Flutter plugin not installed; this adds Flutter specific functionality.
    �[31m✗�[39m Dart plugin not installed; this adds Dart specific functionality.
    �[32m•�[39m For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

�[32m[✓]�[39m VS Code, 64-bit edition (version 1.29.1)
    �[32m•�[39m VS Code at C:\Program Files\Microsoft VS Code
    �[32m•�[39m Flutter extension version 2.21.0

�[32m[✓]�[39m Connected device (1 available)
    �[32m•�[39m BKL AL00 • RKKDU18104007058 • android-arm64 • Android 9 (API 28)

�[33m!�[39m Doctor found issues in 1 category.
</code></pre></div>