[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flutter 1.20] Unsupported operation: serialization of generic DartType: UnknownType(?) (UnknownType) #63038

Closed
Mecheka opened this issue Aug 6, 2020 · 46 comments
Labels
c: crash Stack traces logged to the console c: regression It was better in the past than it is now customer: crowd Affects or could affect many people, though not necessarily a specific customer. dependency: dart Dart team may need to help us found in release: 1.20 Found to occur in 1.20 platform-ios iOS applications specifically

Comments

@Mecheka
Copy link
Mecheka commented Aug 6, 2020

i updated my flutter project to version 1.20.0
i can't run my application

Launching lib/main_stag.dart on iPhone SE (2nd generation) in debug mode...
Running pod install...
Unhandled exception:
Unsupported operation: serialization of generic DartType: UnknownType(?) (UnknownType)
�[38;5;248m#0      BinaryPrinter.defaultDartType  (package:kernel/binary/ast_to_binary.dart:2231:5)�[39;49m
�[38;5;248m#1      UnknownType.accept  (package:front_end/src/fasta/type_inference/type_schema.dart:82:14)�[39;49m
�[38;5;248m#2      BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#3      BinaryPrinter.writeNodeList  (package:kernel/binary/ast_to_binary.dart:292:7)�[39;49m

�[38;5;248m#4      BinaryPrinter.visitInterfaceType  (package:kernel/binary/ast_to_binary.dart:2069:7)�[39;49m
�[38;5;248m#5      InterfaceType.accept  (package:kernel/ast.dart:7504:42)�[39;49m
�[38;5;248m#6      BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#7      BinaryPrinter.visitFutureOrType  (package:kernel/binary/ast_to_binary.dart:2090:5)�[39;49m
�[38;5;248m#8      FutureOrType.accept  (package:kernel/ast.dart:7903:42)�[39;49m
�[38;5;248m#9      BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#10     BinaryPrinter.visitAsExpression  (package:kernel/binary/ast_to_binary.dart:1616:5)�[39;49m
�[38;5;248m#11     AsExpression.accept  (package:kernel/ast.dart:4913:44)�[39;49m
�[38;5;248m#12     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#13     BinaryPrinter.visitVariableSet  (package:kernel/binary/ast_to_binary.dart:1368:7)�[39;49m
�[38;5;248m#14     VariableSet.accept  (package:kernel/ast.dart:3144:44)�[39;49m
�[38;5;248m#15     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#16     BinaryPrinter.visitExpressionStatement  (package:kernel/binary/ast_to_binary.dart:1795:5)�[39;49m
�[38;5;248m#17     ExpressionStatement.accept  (package:kernel/ast.dart:5784:43)�[39;49m
�[38;5;248m#18     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#19     BinaryPrinter.writeNodeList  (package:kernel/binary/ast_to_binary.dart:292:7)�[39;49m
�[38;5;248m#20     BinaryPrinter.visitBlock  (package:kernel/binary/ast_to_binary.dart:1803:5)�[39;49m
�[38;5;248m#21     Block.accept  (package:kernel/ast.dart:5823:43)�[39;49m
�[38;5;248m#22     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#23     BinaryPrinter.visitLabeledStatement  (package:kernel/binary/ast_to_binary.dart:1837:5)�[39;49m
�[38;5;248m#24     LabeledStatement.accept  (package:kernel/ast.dart:5984:43)�[39;49m
�[38;5;248m#25     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#26     BinaryPrinter.writeNodeList  (package:kernel/binary/ast_to_binary.dart:292:7)�[39;49m
�[38;5;248m#27     BinaryPrinter.visitBlock  (package:kernel/binary/ast_to_binary.dart:1803:5)�[39;49m

�[38;5;248m#28     Block.accept  (package:kernel/ast.dart:5823:43)�[39;49m
�[38;5;248m#29     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#30     BinaryPrinter.visitTryCatch  (package:kernel/binary/ast_to_binary.dart:1954:5)�[39;49m
�[38;5;248m#31     TryCatch.accept  (package:kernel/ast.dart:6532:43)�[39;49m
�[38;5;248m#32     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#33     BinaryPrinter.writeOptionalNode  (package:kernel/binary/ast_to_binary.dart:475:7)�[39;49m
�[38;5;248m#34     BinaryPrinter.visitFunctionNode  (package:kernel/binary/ast_to_binary.dart:1327:5)�[39;49m
�[38;5;248m#35     FunctionNode.accept  (package:kernel/ast.dart:2909:38)�[39;49m
�[38;5;248m#36     BinaryPrinter.writeFunctionNode  (package:kernel/binary/ast_to_binary.dart:389:10)�[39;49m
�[38;5;248m#37     BinaryPrinter.visitFunctionDeclaration  (package:kernel/binary/ast_to_binary.dart:2030:5)�[39;49m
�[38;5;248m#38     FunctionDeclaration.accept  (package:kernel/ast.dart:6988:43)�[39;49m
�[38;5;248m#39     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#40     BinaryPrinter.writeNodeList  (package:kernel/binary/ast_to_binary.dart:292:7)�[39;49m
�[38;5;248m#41     BinaryPrinter.visitBlock  (package:kernel/binary/ast_to_binary.dart:1803:5)�[39;49m
�[38;5;248m#42     Block.accept  (package:kernel/ast.dart:5823:43)�[39;49m
�[38;5;248m#43     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#44     BinaryPrinter.writeOptionalNode  (package:kernel/binary/ast_to_binary.dart:475:7)�[39;49m
�[38;5;248m#45     BinaryPrinter.visitFunctionNode  (package:kernel/binary/ast_to_binary.dart:1327:5)�[39;49m
�[38;5;248m#46     FunctionNode.accept  (package:kernel/ast.dart:2909:38)�[39;49m
�[38;5;248m#47     BinaryPrinter.writeFunctionNode  (package:kernel/binary/ast_to_binary.dart:389:10)�[39;49m
�[38;5;248m#48     BinaryPrinter.visitFunctionExpression  (package:kernel/binary/ast_to_binary.dart:1742:5)�[39;49m
�[38;5;248m#49     FunctionExpression.accept  (package:kernel/ast.dart:5535:44)�[39;49m
�[38;5;248m#50     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m

�[38;5;248m#51     BinaryPrinter.visitNamedExpression  (package:kernel/binary/ast_to_binary.dart:1503:5)�[39;49m
�[38;5;248m#52     NamedExpression.accept  (package:kernel/ast.dart:3813:38)�[39;49m
�[38;5;248m#53     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#54     BinaryPrinter.writeNodeList  (package:kernel/binary/ast_to_binary.dart:292:7)�[39;49m
�[38;5;248m#55     BinaryPrinter.visitArguments  (package:kernel/binary/ast_to_binary.dart:1497:5)�[39;49m
�[38;5;248m#56     Arguments.accept  (package:kernel/ast.dart:3753:38)�[39;49m
�[38;5;248m#57     BinaryPrinter.writeArgumentsNode  (package:kernel/binary/ast_to_binary.dart:396:10)�[39;49m

�[38;5;248m#58     BinaryPrinter.visitConstructorInvocation  (package:kernel/binary/ast_to_binary.dart:1489:5)�[39;49m
�[38;5;248m#59     ConstructorInvocation.accept  (package:kernel/ast.dart:4154:44)�[39;49m
�[38;5;248m#60     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#61     BinaryPrinter.visitNamedExpression  (package:kernel/binary/ast_to_binary.dart:1503:5)�[39;49m
�[38;5;248m#62     NamedExpression.accept  (package:kernel/ast.dart:3813:38)�[39;49m
�[38;5;248m#63     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#64     BinaryPrinter.writeNodeList  (package:kernel/binary/ast_to_binary.dart:292:7)�[39;49m
�[38;5;248m#65     BinaryPrinter.visitArguments  (package:kernel/binary/ast_to_binary.dart:1497:5)�[39;49m
�[38;5;248m#66     Arguments.accept  (package:kernel/ast.dart:3753:38)�[39;49m
�[38;5;248m#67     BinaryPrinter.writeArgumentsNode  (package:kernel/binary/ast_to_binary.dart:396:10)�[39;49m
�[38;5;248m#68     BinaryPrinter.visitConstructorInvocation  (package:kernel/binary/ast_to_binary.dart:1489:5)�[39;49m
�[38;5;248m#69     ConstructorInvocation.accept  (package:kernel/ast.dart:4154:44)�[39;49m
�[38;5;248m#70     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m

�[38;5;248m#71     BinaryPrinter.writeOptionalNode  (package:kernel/binary/ast_to_binary.dart:475:7)�[39;49m
�[38;5;248m#72     BinaryPrinter.visitReturnStatement  (package:kernel/binary/ast_to_binary.dart:1944:5)�[39;49m
�[38;5;248m#73     ReturnStatement.accept  (package:kernel/ast.dart:6491:43)�[39;49m

�[38;5;248m#74     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#75     BinaryPrinter.writeNodeList  (package:kernel/binary/ast_to_binary.dart:292:7)�[39;49m
�[38;5;248m#76     BinaryPrinter.visitBlock  (package:kernel/binary/ast_to_binary.dart:1803:5)�[39;49m
�[38;5;248m#77     Block.accept  (package:kernel/ast.dart:5823:43)�[39;49m
�[38;5;248m#78     BinaryPrinter.writeNode  (package:kernel/binary/ast_to_binary.dart:382:10)�[39;49m
�[38;5;248m#79     BinaryPrinter.writeOptionalNode  (package:kernel/binary/ast_to_binary.dart:475:7)�[39;49m
�[38;5;248m#80     BinaryPrinter.visitFunctionNode  (package:kernel/binary/ast_to_binary.dart:1327:5)�[39;49m
�[38;5;248m#81     FunctionNode.accept  (package:kernel/ast.dart:2909:38)�[39;49m
�[38;5;248m#82     BinaryPrinter.writeFunctionNode  (package:kernel/binary/ast_to_binary.dart:389:10)�[39;49m
�[38;5;248m#83     BinaryPrinter.writeOptionalFunctionNode  (package:kernel/binary/ast_to_binary.dart:484:7)�[39;49m
�[38;5;248m#84     BinaryPrinter.visitProcedure  (package:kernel/binary/ast_to_binary.dart:1203:5)�[39;49m
�[38;5;248m#85     Procedure.accept  (package:kernel/ast.dart:2400:40)�[39;49m
�[38;5;248m#86     BinaryPrinter.writeProcedureNode  (package:kernel/binary/ast_to_binary.dart:410:10)�[39;49m
�[38;5;248m#87     BinaryPrinter.writeProcedureNodeList  (package:kernel/binary/ast_to_binary.dart:301:7)�[39;49m
�[38;5;248m#88     BinaryPrinter.visitClass  (package:kernel/binary/ast_to_binary.dart:1131:5)�[39;49m
�[38;5;248m#89     Class.accept  (package:kernel/ast.dart:1379:38)�[39;49m
�[38;5;248m#90     BinaryPrinter.writeClassNode  (package:kernel/binary/ast_to_binary.dart:424:10)�[39;49m
�[38;5;248m#91     BinaryPrinter.writeClassNodeList  (package:kernel/binary/ast_to_binary.dart:319:7)�[39;49m
�[38;5;248m#92     BinaryPrinter.visitLibrary  (package:kernel/binary/ast_to_binary.dart:961:5)�[39;49m
�[38;5;248m#93     Library.accept  (package:kernel/ast.dart:607:38)�[39;49m
�[38;5;248m#94     BinaryPrinter.writeLibraryNode  (package:kernel/binary/ast_to_binary.dart:403:10)�[39;49m
�[38;5;248m#95     BinaryPrinter.writeLibraries  (package:kernel/binary/ast_to_binary.dart:710:9)�[39;49m
�[38;5;248m#96     BinaryPrinter.writeComponentFile.<anonymous closure>  (package:kernel/binary/ast_to_binary.dart:553:7)�[39;49m
�[38;5;244m#97     Timeline.timeSync  (dart:developer/timeline.dart:163:22)�[39;49m
�[38;5;248m#98     BinaryPrinter.writeComponentFile  (package:kernel/binary/ast_to_binary.dart:536:14)�[39;49m

�[38;5;248m#99     IncrementalSerializer.serialize  (package:front_end/src/fasta/incremental_serializer.dart:308:13)�[39;49m
�[38;5;248m#100    IncrementalSerializer.writePackagesToSinkAndTrimComponent  (package:front_end/src/fasta/incremental_serializer.dart:159:24)�[39;49m
�[38;5;248m#101    FrontendCompiler.writeDillFile  (package:frontend_server/frontend_server.dart:747:31)�[39;49m
�[38;5;248m#102    FrontendCompiler.compile  (package:frontend_server/frontend_server.dart:564:13)�[39;49m
�[38;5;244m<asynchronous suspension>�[39;49m
�[38;5;248m#103    _FlutterFrontendCompiler.compile  (package:flutter_frontend_server/server.dart:43:22)�[39;49m
�[38;5;248m#104    listenAndCompile.<anonymous closure>  (package:frontend_server/frontend_server.dart:1201:26)�[39;49m
�[38;5;244m#105    _RootZone.runUnaryGuarded  (dart:async/zone.dart:1384:10)�[39;49m
�[38;5;244m#106    _BufferingStreamSubscription._sendData  (dart:async/stream_impl.dart:357:11)�[39;49m
�[38;5;244m#107    _BufferingStreamSubscription._add  (dart:async/stream_impl.dart:285:7)�[39;49m
�[38;5;244m#108    _SinkTransformerStreamSubscription._add  (dart:async/stream_transformers.dart:69:11)�[39;49m
�[38;5;244m#109    _EventSinkWrapper.add  (dart:async/stream_transformers.dart:15:11)�[39;49m
�[38;5;244m#110    _StringAdapterSink.add  (dart:convert/string_conversion.dart:238:11)�[39;49m
�[38;5;244m#111    _LineSplitterSink._addLines  (dart:convert/line_splitter.dart:155:13)�[39;49m
�[38;5;244m#112    _LineSplitterSink.addSlice  (dart:convert/line_splitter.dart:130:5)�[39;49m
�[38;5;244m#113    StringConversionSinkMixin.add  (dart:convert/string_conversion.dart:163:5)�[39;49m
�[38;5;244m#114    _SinkTransformerStreamSubscription._handleData  (dart:async/stream_transformers.dart:121:24)�[39;49m
�[38;5;244m#115    _RootZone.runUnaryGuarded  (dart:async/zone.dart:1384:10)�[39;49m
�[38;5;244m#116    _BufferingStreamSubscription._sendData  (dart:async/stream_impl.dart:357:11)�[39;49m
�[38;5;244m#117    _BufferingStreamSubscription._add  (dart:async/stream_impl.dart:285:7)�[39;49m
�[38;5;244m#118    _SinkTransformerStreamSubscription._add  (dart:async/stream_transformers.dart:69:11)�[39;49m
�[38;5;244m#119    _EventSinkWrapper.add  (dart:async/stream_transformers.dart:15:11)�[39;49m
�[38;5;244m#120    _StringAdapterSink.add  (dart:convert/string_conversion.dart:238:11)�[39;49m
�[38;5;244m#121    _StringAdapterSink.addSlice  (dart:convert/string_conversion.dart:243:7)�[39;49m
�[38;5;244m#122    _Utf8ConversionSink.addSlice  (dart:convert/string_conversion.dart:317:20)�[39;49m
�[38;5;244m#123    _Utf8ConversionSink.add  (dart:convert/string_conversion.dart:310:5)�[39;49m
�[38;5;244m#124    _ConverterStreamEventSink.add  (dart:convert/chunked_conversion.dart:72:18)�[39;49m
�[38;5;244m#125    _SinkTransformerStreamSubscription._handleData  (dart:async/stream_transformers.dart:121:24)�[39;49m
�[38;5;244m#126    _RootZone.runUnaryGuarded  (dart:async/zone.dart:1384:10)�[39;49m
�[38;5;244m#127    _BufferingStreamSubscription._sendData  (dart:async/stream_impl.dart:357:11)�[39;49m
�[38;5;244m#128    _BufferingStreamSubscription._add  (dart:async/stream_impl.dart:285:7)�[39;49m
�[38;5;244m#129    _SyncStreamControllerDispatch._sendData  (dart:async/stream_controller.dart:808:19)�[39;49m
�[38;5;244m#130    _StreamController._add  (dart:async/stream_controller.dart:682:7)�[39;49m
�[38;5;244m#131    _StreamController.add  (dart:async/stream_controller.dart:624:5)�[39;49m
�[38;5;244m#132    _Socket._onData  (dart:io-patch/socket_patch.dart:2020:41)�[39;49m
�[38;5;244m#133    _RootZone.runUnaryGuarded  (dart:async/zone.dart:1384:10)�[39;49m
�[38;5;244m#134    _BufferingStreamSubscription._sendData  (dart:async/stream_impl.dart:357:11)�[39;49m
�[38;5;244m#135    _BufferingStreamSubscription._add  (dart:async/stream_impl.dart:285:7)�[39;49m
�[38;5;244m#136    _SyncStreamControllerDispatch._sendData  (dart:async/stream_controller.dart:808:19)�[39;49m
�[38;5;244m#137    _StreamController._add  (dart:async/stream_controller.dart:682:7)�[39;49m

�[38;5;244m#138    _StreamController.add  (dart:async/stream_controller.dart:624:5)�[39;49m
�[38;5;244m#139    new _RawSocket.<anonymous closure>  (dart:io-patch/socket_patch.dart:1556:33)�[39;49m
�[38;5;244m#140    _NativeSocket.issueReadEvent.issue  (dart:io-patch/socket_patch.dart:1052:14)�[39;49m
�[38;5;244m#141    _microtaskLoop  (dart:async/schedule_microtask.dart:41:21)�[39;49m
�[38;5;244m#142    _startMicrotaskLoop  (dart:async/schedule_microtask.dart:50:5)�[39;49m
�[38;5;244m#143    _runPendingImmediateCallback  (dart:isolate-patch/isolate_patch.dart:118:13)�[39;49m
�[38;5;244m#144    _RawReceivePortImpl._handleMessage  (dart:isolate-patch/isolate_patch.dart:169:5)�[39;49m

the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.
Exited (1)
@Abhishek01039
Copy link
Contributor

dart-lang/sdk#42615
please refer this

@illukinati
Copy link
Launching lib/main.dart on iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: MHA55B8B56
Warning: Podfile is out of date
  This can cause issues if your application depends on plugins that do not support iOS.
  See https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms for details.
  If you have local Podfile edits you would like to keep, see https://github.com/flutter/flutter/issues/45197 for instructions.
To regenerate the Podfile, run:
  rm ios/Podfile

Running Xcode build...
Xcode build done.                                           17.8s
Failed to build iOS app
Error output from Xcode build:
↳
Could not build the precompiled application for the device.

Error launching application on iPhone.
** BUILD FAILED **


Xcode's output:
↳
Invalid depfile: /Users/luki/Development/FlutterApps/floo/.dart_tool/flutter_build/4a983bb54f0ff35db6963c965b1fb5cd/kernel_snapshot.d
Invalid depfile: /Users/luki/Development/FlutterApps/floo/.dart_tool/flutter_build/4a983bb54f0ff35db6963c965b1fb5cd/kernel_snapshot.d
Invalid depfile: /Users/luki/Development/FlutterApps/floo/.dart_tool/flutter_build/4a983bb54f0ff35db6963c965b1fb5cd/kernel_snapshot.d
Invalid depfile: /Users/luki/Development/FlutterApps/floo/.dart_tool/flutter_build/4a983bb54f0ff35db6963c965b1fb5cd/kernel_snapshot.d
Error: Could not resolve the package 'characters' in 'package:characters/characters.dart'.
../../Flutter/packages/flutter/lib/src/material/text_field.dart:9:8: Error: Not found: 'package:characters/characters.dart'
import 'package:characters/characters.dart';
       ^
../../Flutter/packages/flutter/lib/widgets.dart:18:1: Error: Not found: 'package:characters/characters.dart'
export 'package:characters/characters.dart';
^
../../Flutter/packages/flutter/lib/src/services/text_formatter.dart:9:8: Error: Not found: 'package:characters/characters.dart'
import 'package:characters/characters.dart';
       ^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:10:8: Error: Not found: 'package:characters/characters.dart'
import 'package:characters/characters.dart';
       ^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:88:26: Error: Type 'DiagnosticableMixin' not found.
class PictureStream with DiagnosticableMixin {
                         ^^^^^^^^^^^^^^^^^^^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:192:44: Error: Type 'DiagnosticableMixin' not found.
abstract class PictureStreamCompleter with DiagnosticableMixin {
                                           ^^^^^^^^^^^^^^^^^^^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_cupertino_date_picker-1.0.26+2/lib/src/date_picker_theme.dart:23:32: Error: Type 'DiagnosticableMixin' not found.
class DateTimePickerTheme with DiagnosticableMixin {
                               ^^^^^^^^^^^^^^^^^^^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:88:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class PictureStream with DiagnosticableMixin {
      ^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:192:16: Error: The type 'DiagnosticableMixin' can't be mixed in.
abstract class PictureStreamCompleter with DiagnosticableMixin {
               ^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_cupertino_date_picker-1.0.26+2/lib/src/date_picker_theme.dart:23:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class DateTimePickerTheme with DiagnosticableMixin {
      ^
../../Flutter/packages/flutter/lib/src/material/text_field.dart:822:61: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
  int get _currentLength => _effectiveController.value.text.characters.length;
                                                            ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/material/text_field.dart:824:118: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
  bool get _hasIntrinsicError => widget.maxLength != null && widget.maxLength > 0 && _effectiveController.value.text.characters.length > widget.maxLength;
                                                                                                                     ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/services/text_formatter.dart:355:11: Error: 'CharacterRange' isn't a type.
    final CharacterRange iterator = CharacterRange(value.text);
          ^^^^^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/services/text_formatter.dart:355:37: Error: Method not found: 'CharacterRange'.
    final CharacterRange iterator = CharacterRange(value.text);
                                    ^^^^^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/services/text_formatter.dart:356:20: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
    if (value.text.characters.length > maxLength) {
                   ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/services/text_formatter.dart:375:61: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
    if (maxLength != null && maxLength > 0 && newValue.text.characters.length > maxLength) {
                                                            ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/services/text_formatter.dart:378:25: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
      if (oldValue.text.characters.length == maxLength) {
                        ^^^^^^^^^^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:167:11: Error: Superclass has no method named 'debugFillProperties'.
    super.debugFillProperties(properties);
          ^^^^^^^^^^^^^^^^^^^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:171:30: Error: The method 'toStringShort' isn't defined for the class 'PictureStreamCompleter'.
 - 'PictureStreamCompleter' is from 'package:flutter_svg/src/picture_stream.dart' ('../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringShort'.
      ifPresent: _completer?.toStringShort(),
                             ^^^^^^^^^^^^^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:266:11: Error: Superclass has no method named 'debugFillProperties'.
    super.debugFillProperties(description);
          ^^^^^^^^^^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:244:64: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
       assert(obscuringCharacter != null && obscuringCharacter.characters.length == 1),
                                                               ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:361:35: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
    assert(value != null && value.characters.length == 1);
                                  ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:567:11: Error: 'Characters' isn't a type.
    final Characters remaining = string.characters.skipWhile((String currentString) {
          ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:567:41: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
    final Characters remaining = string.characters.skipWhile((String currentString) {
                                        ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:600:47: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
    for (final String currentString in string.characters) {
                                              ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:602:40: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
          !_isWhitespace(currentString.characters.first.toString().codeUnitAt(0))) {
                                       ^^^^^^^^^^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Acharacters%2Fcharacters.dart; message=StandardFileSystem only supports file:* and data:* URIs)
#0      StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:33:7)
#1      asFileUri (package:vm/kernel_front_end.dart:659:37)
#2      writeDepfile (package:vm/kernel_front_end.dart:853:21)
<asynchronous suspension>
#3      FrontendCompiler.compile (package:frontend_server/frontend_server.dart:574:15)
<asynchronous suspension>
#4      _FlutterFrontendCompiler.compile (package:flutter_frontend_server/server.dart:43:22)
#5      starter (package:flutter_frontend_server/server.dart:182:27)
#6      main (file:///b/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:9:30)
#7      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#8      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)


Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Flutter doctor

Flutter is already up to date on channel stable
Flutter 1.20.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 840c9205b3 (25 hours ago) • 2020-08-04 20:55:12 -0700
Engine • revision c8e3b94853
Tools • Dart 2.9.0
luki@MacBook-Pro floo % flutter doctor -v
[✓] Flutter (Channel stable, 1.20.0, on Mac OS X 10.15.6 19G73, locale en-JP)
    • Flutter version 1.20.0 at /Users/luki/Development/Flutter
    • Framework revision 840c9205b3 (25 hours ago), 2020-08-04 20:55:12 -0700
    • Engine revision c8e3b94853
    • Dart version 2.9.0

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/luki/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • 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.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (1 available)
    • iPhone (mobile) • 8247d1866476839307abf28b714036cc55d9cf15 • ios • iOS 12.4.6

• No issues found!

MacBook Pro 2020
Mac OS Catalina 10.15.6

@Abhishek01039
Copy link
Contributor

try flutter clean @illukinati

@ganger1
Copy link
ganger1 commented Aug 6, 2020

Also facing issue after I upgrade flutter to 1.20.0

Error launching application on iPhone Xs Max.
Error output from Xcode build:
↳
** BUILD FAILED **


Xcode's output:
↳
/Volumes/A/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:195:43: warning: 'FIRMessagingRemoteMessage' is deprecated: FCM direct channel is deprecated, please use APNs for downstream message handling. [-Wdeprecated-declarations]
- (void)applicationReceivedRemoteMessage:(FIRMessagingRemoteMessage *)remoteMessage {
                                          ^
In module 'FirebaseMessaging' imported from /Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:219:1: note: 'FIRMessagingRemoteMessage' has been explicitly marked deprecated here
__deprecated_msg(
^
In module 'UIKit' imported from /Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/sys/cdefs.h:191:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
/Volumes/A/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:307:24: warning: 'FIRMessagingRemoteMessage' is deprecated: FCM direct channel is deprecated, please use APNs for downstream message handling. [-Wdeprecated-declarations]
    didReceiveMessage:(FIRMessagingRemoteMessage *)remoteMessage {
                       ^
In module 'FirebaseMessaging' imported from /Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:219:1: note: 'FIRMessagingRemoteMessage' has been explicitly marked deprecated here
__deprecated_msg(
^
In module 'UIKit' imported from /Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/sys/cdefs.h:191:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
/Volumes/A/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:141:30: warning: 'shouldEstablishDirectChannel' is deprecated: FCM direct channel is deprecated, please use APNs channel for downstream message delivery. [-Wdeprecated-declarations]
    [FIRMessaging messaging].shouldEstablishDirectChannel = true;
                             ^
In module 'FirebaseMessaging' imported from /Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:283:56: note: 'shouldEstablishDirectChannel' has been explicitly marked deprecated here
@property(nonatomic) BOOL shouldEstablishDirectChannel DEPRECATED_MSG_ATTRIBUTE(
                                                       ^
In module 'UIKit' imported from /Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/AvailabilityMacros.h:182:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
            #define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
                                                               ^
/Volumes/A/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:196:52: warning: 'appData' is deprecated [-Wdeprecated-declarations]
  [self didReceiveRemoteNotification:remoteMessage.appData];
                                                   ^
In module 'FirebaseMessaging' imported from /Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:226:62: note: 'appData' has been explicitly marked deprecated here
@property(nonatomic, readonly, strong) NSDictionary *appData DEPRECATED_ATTRIBUTE;
                                                             ^
In module 'UIKit' imported from /Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/AvailabilityMacros.h:180:60: note: expanded from macro 'DEPRECATED_ATTRIBUTE'
        #define DEPRECATED_ATTRIBUTE        __attribute__((deprecated))
                                                           ^
/Volumes/A/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:306:1: warning: implementing deprecated method [-Wdeprecated-implementations]
- (void)messaging:(FIRMessaging *)messaging
^
In module 'FirebaseMessaging' imported from /Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:253:1: note: method 'messaging:didReceiveMessage:' declared here
- (void)messaging:(FIRMessaging *)messaging
^
/Volumes/A/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-6.0.16/ios/Classes/FLTFirebaseMessagingPlugin.m:308:63: warning: 'appData' is deprecated [-Wdeprecated-declarations]
  [_channel invokeMethod:@"onMessage" arguments:remoteMessage.appData];
                                                              ^
In module 'FirebaseMessaging' imported from /Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/Headers/Public/Firebase/Firebase.h:72:
/Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/Public/FIRMessaging.h:226:62: note: 'appData' has been explicitly marked deprecated here
@property(nonatomic, readonly, strong) NSDictionary *appData DEPRECATED_ATTRIBUTE;
                                                             ^
In module 'UIKit' imported from /Volumes/A/bitbucket/nhadyah/h2/hadyah/ios/Pods/Target Support Files/firebase_messaging/firebase_messaging-prefix.pch:2:
In module 'Foundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/usr/include/AvailabilityMacros.h:180:60: note: expanded from macro 'DEPRECATED_ATTRIBUTE'
        #define DEPRECATED_ATTRIBUTE        __attribute__((deprecated))
                                                           ^
6 warnings generated.
ld: framework not found flutter_plugin_android_lifecycle
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Flutter Doctor

Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel stable, 1.20.0, on Mac OS X 10.15.2 19C57, locale en-GB)
 
    [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    [✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    [✓] Android Studio (version 4.0)
    [✓] Connected device (2 available)

   • No issues found!

@illukinati
Copy link

try flutter clean @illukinati

doesn't work.

@Abhishek01039
Copy link
Contributor

#59645 @illukinati

@Pluto1219
Copy link

me too

@jithinjoycy
Copy link

I also have the problem, after upgrading the flutter.

@Basher7
Copy link
Basher7 commented Aug 6, 2020

facing same problem in android phones after upgrading flutter version to 1.20.0

@sumitkakshapati
Copy link
Launching lib/main.dart on iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: MHA55B8B56
Warning: Podfile is out of date
  This can cause issues if your application depends on plugins that do not support iOS.
  See https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms for details.
  If you have local Podfile edits you would like to keep, see https://github.com/flutter/flutter/issues/45197 for instructions.
To regenerate the Podfile, run:
  rm ios/Podfile

Running Xcode build...
Xcode build done.                                           17.8s
Failed to build iOS app
Error output from Xcode build:
↳
Could not build the precompiled application for the device.

Error launching application on iPhone.
** BUILD FAILED **


Xcode's output:
↳
Invalid depfile: /Users/luki/Development/FlutterApps/floo/.dart_tool/flutter_build/4a983bb54f0ff35db6963c965b1fb5cd/kernel_snapshot.d
Invalid depfile: /Users/luki/Development/FlutterApps/floo/.dart_tool/flutter_build/4a983bb54f0ff35db6963c965b1fb5cd/kernel_snapshot.d
Invalid depfile: /Users/luki/Development/FlutterApps/floo/.dart_tool/flutter_build/4a983bb54f0ff35db6963c965b1fb5cd/kernel_snapshot.d
Invalid depfile: /Users/luki/Development/FlutterApps/floo/.dart_tool/flutter_build/4a983bb54f0ff35db6963c965b1fb5cd/kernel_snapshot.d
Error: Could not resolve the package 'characters' in 'package:characters/characters.dart'.
../../Flutter/packages/flutter/lib/src/material/text_field.dart:9:8: Error: Not found: 'package:characters/characters.dart'
import 'package:characters/characters.dart';
       ^
../../Flutter/packages/flutter/lib/widgets.dart:18:1: Error: Not found: 'package:characters/characters.dart'
export 'package:characters/characters.dart';
^
../../Flutter/packages/flutter/lib/src/services/text_formatter.dart:9:8: Error: Not found: 'package:characters/characters.dart'
import 'package:characters/characters.dart';
       ^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:10:8: Error: Not found: 'package:characters/characters.dart'
import 'package:characters/characters.dart';
       ^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:88:26: Error: Type 'DiagnosticableMixin' not found.
class PictureStream with DiagnosticableMixin {
                         ^^^^^^^^^^^^^^^^^^^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:192:44: Error: Type 'DiagnosticableMixin' not found.
abstract class PictureStreamCompleter with DiagnosticableMixin {
                                           ^^^^^^^^^^^^^^^^^^^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_cupertino_date_picker-1.0.26+2/lib/src/date_picker_theme.dart:23:32: Error: Type 'DiagnosticableMixin' not found.
class DateTimePickerTheme with DiagnosticableMixin {
                               ^^^^^^^^^^^^^^^^^^^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:88:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class PictureStream with DiagnosticableMixin {
      ^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:192:16: Error: The type 'DiagnosticableMixin' can't be mixed in.
abstract class PictureStreamCompleter with DiagnosticableMixin {
               ^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_cupertino_date_picker-1.0.26+2/lib/src/date_picker_theme.dart:23:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class DateTimePickerTheme with DiagnosticableMixin {
      ^
../../Flutter/packages/flutter/lib/src/material/text_field.dart:822:61: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
  int get _currentLength => _effectiveController.value.text.characters.length;
                                                            ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/material/text_field.dart:824:118: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
  bool get _hasIntrinsicError => widget.maxLength != null && widget.maxLength > 0 && _effectiveController.value.text.characters.length > widget.maxLength;
                                                                                                                     ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/services/text_formatter.dart:355:11: Error: 'CharacterRange' isn't a type.
    final CharacterRange iterator = CharacterRange(value.text);
          ^^^^^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/services/text_formatter.dart:355:37: Error: Method not found: 'CharacterRange'.
    final CharacterRange iterator = CharacterRange(value.text);
                                    ^^^^^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/services/text_formatter.dart:356:20: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
    if (value.text.characters.length > maxLength) {
                   ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/services/text_formatter.dart:375:61: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
    if (maxLength != null && maxLength > 0 && newValue.text.characters.length > maxLength) {
                                                            ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/services/text_formatter.dart:378:25: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
      if (oldValue.text.characters.length == maxLength) {
                        ^^^^^^^^^^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:167:11: Error: Superclass has no method named 'debugFillProperties'.
    super.debugFillProperties(properties);
          ^^^^^^^^^^^^^^^^^^^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:171:30: Error: The method 'toStringShort' isn't defined for the class 'PictureStreamCompleter'.
 - 'PictureStreamCompleter' is from 'package:flutter_svg/src/picture_stream.dart' ('../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringShort'.
      ifPresent: _completer?.toStringShort(),
                             ^^^^^^^^^^^^^
../../Flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.17.2/lib/src/picture_stream.dart:266:11: Error: Superclass has no method named 'debugFillProperties'.
    super.debugFillProperties(description);
          ^^^^^^^^^^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:244:64: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
       assert(obscuringCharacter != null && obscuringCharacter.characters.length == 1),
                                                               ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:361:35: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
    assert(value != null && value.characters.length == 1);
                                  ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:567:11: Error: 'Characters' isn't a type.
    final Characters remaining = string.characters.skipWhile((String currentString) {
          ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:567:41: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
    final Characters remaining = string.characters.skipWhile((String currentString) {
                                        ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:600:47: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
    for (final String currentString in string.characters) {
                                              ^^^^^^^^^^
../../Flutter/packages/flutter/lib/src/rendering/editable.dart:602:40: Error: The getter 'characters' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'characters'.
          !_isWhitespace(currentString.characters.first.toString().codeUnitAt(0))) {
                                       ^^^^^^^^^^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Acharacters%2Fcharacters.dart; message=StandardFileSystem only supports file:* and data:* URIs)
#0      StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:33:7)
#1      asFileUri (package:vm/kernel_front_end.dart:659:37)
#2      writeDepfile (package:vm/kernel_front_end.dart:853:21)
<asynchronous suspension>
#3      FrontendCompiler.compile (package:frontend_server/frontend_server.dart:574:15)
<asynchronous suspension>
#4      _FlutterFrontendCompiler.compile (package:flutter_frontend_server/server.dart:43:22)
#5      starter (package:flutter_frontend_server/server.dart:182:27)
#6      main (file:///b/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:9:30)
#7      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#8      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)


Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Flutter doctor

Flutter is already up to date on channel stable
Flutter 1.20.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 840c9205b3 (25 hours ago) • 2020-08-04 20:55:12 -0700
Engine • revision c8e3b94853
Tools • Dart 2.9.0
luki@MacBook-Pro floo % flutter doctor -v
[✓] Flutter (Channel stable, 1.20.0, on Mac OS X 10.15.6 19G73, locale en-JP)
    • Flutter version 1.20.0 at /Users/luki/Development/Flutter
    • Framework revision 840c9205b3 (25 hours ago), 2020-08-04 20:55:12 -0700
    • Engine revision c8e3b94853
    • Dart version 2.9.0

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/luki/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • 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.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (1 available)
    • iPhone (mobile) • 8247d1866476839307abf28b714036cc55d9cf15 • ios • iOS 12.4.6

• No issues found!

MacBook Pro 2020
Mac OS Catalina 10.15.6

try installing this packages https://pub.dev/packages/characters.

@jithinjoycy
Copy link

getting the same error after upgrading to 1.20

Unhandled exception:                                                    
Unsupported operation: serialization of generic DartType: UnknownType(?) (UnknownType)
#0      BinaryPrinter.defaultDartType                                   
(package:kernel/binary/ast_to_binary.dart:2231:5)
#1      UnknownType.accept                                              
(package:front_end/src/fasta/type_inference/type_schema.dart:82:14)
#2      BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#3      BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
#4      BinaryPrinter.visitInterfaceType                                
(package:kernel/binary/ast_to_binary.dart:2069:7)
#5      InterfaceType.accept (package:kernel/ast.dart:7504:42)          
#6      BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#7      BinaryPrinter.visitFutureOrType                                 
(package:kernel/binary/ast_to_binary.dart:2090:5)
#8      FutureOrType.accept (package:kernel/ast.dart:7903:42)           
#9      BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#10     BinaryPrinter.visitAsExpression                                 
(package:kernel/binary/ast_to_binary.dart:1616:5)
#11     AsExpression.accept (package:kernel/ast.dart:4913:44)           
#12     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#13     BinaryPrinter.visitVariableSet                                  
(package:kernel/binary/ast_to_binary.dart:1368:7)
#14     VariableSet.accept (package:kernel/ast.dart:3144:44)            
#15     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#16     BinaryPrinter.visitExpressionStatement                          
(package:kernel/binary/ast_to_binary.dart:1795:5)
#17     ExpressionStatement.accept (package:kernel/ast.dart:5784:43)    
#18     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#19     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
#20     BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1803:5)
#21     Block.accept (package:kernel/ast.dart:5823:43)                  
#22     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#23     BinaryPrinter.visitLabeledStatement                             
(package:kernel/binary/ast_to_binary.dart:1837:5)
#24     LabeledStatement.accept (package:kernel/ast.dart:5984:43)       
#25     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#26     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
#27     BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1803:5)
#28     Block.accept (package:kernel/ast.dart:5823:43)                  
#29     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#30     BinaryPrinter.visitTryCatch (package:kernel/binary/ast_to_binary.dart:1954:5)
#31     TryCatch.accept (package:kernel/ast.dart:6532:43)               
#32     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#33     BinaryPrinter.writeOptionalNode                                 
(package:kernel/binary/ast_to_binary.dart:475:7)
#34     BinaryPrinter.visitFunctionNode                                 
(package:kernel/binary/ast_to_binary.dart:1327:5)
#35     FunctionNode.accept (package:kernel/ast.dart:2909:38)           
#36     BinaryPrinter.writeFunctionNode                                 
(package:kernel/binary/ast_to_binary.dart:389:10)
#37     BinaryPrinter.visitFunctionDeclaration                          
(package:kernel/binary/ast_to_binary.dart:2030:5)
#38     FunctionDeclaration.accept (package:kernel/ast.dart:6988:43)    
#39     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#40     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
#41     BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1803:5)
#42     Block.accept (package:kernel/ast.dart:5823:43)                  
#43     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#44     BinaryPrinter.writeOptionalNode                                 
(package:kernel/binary/ast_to_binary.dart:475:7)
#45     BinaryPrinter.visitFunctionNode                                 
(package:kernel/binary/ast_to_binary.dart:1327:5)
#46     FunctionNode.accept (package:kernel/ast.dart:2909:38)           
#47     BinaryPrinter.writeFunctionNode                                 
(package:kernel/binary/ast_to_binary.dart:389:10)
#48     BinaryPrinter.visitFunctionExpression                           
(package:kernel/binary/ast_to_binary.dart:1742:5)
#49     FunctionExpression.accept (package:kernel/ast.dart:5535:44)     
#50     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#51     BinaryPrinter.visitNamedExpression                              
(package:kernel/binary/ast_to_binary.dart:1503:5)
#52     NamedExpression.accept (package:kernel/ast.dart:3813:38)        
#53     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#54     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
#55     BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1497:5)
#56     Arguments.accept (package:kernel/ast.dart:3753:38)              
#57     BinaryPrinter.writeArgumentsNode                                
(package:kernel/binary/ast_to_binary.dart:396:10)
#58     BinaryPrinter.visitConstructorInvocation                        
(package:kernel/binary/ast_to_binary.dart:1489:5)
#59     ConstructorInvocation.accept (package:kernel/ast.dart:4154:44)  
#60     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#61     BinaryPrinter.visitNamedExpression                              
(package:kernel/binary/ast_to_binary.dart:1503:5)
#62     NamedExpression.accept (package:kernel/ast.dart:3813:38)        
#63     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#64     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
#65     BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1497:5)
#66     Arguments.accept (package:kernel/ast.dart:3753:38)              
#67     BinaryPrinter.writeArgumentsNode                                
(package:kernel/binary/ast_to_binary.dart:396:10)
#68     BinaryPrinter.visitConstructorInvocation                        
(package:kernel/binary/ast_to_binary.dart:1489:5)
#69     ConstructorInvocation.accept (package:kernel/ast.dart:4154:44)  
#70     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#71     BinaryPrinter.writeOptionalNode                                 
(package:kernel/binary/ast_to_binary.dart:475:7)
#72     BinaryPrinter.visitReturnStatement                              
(package:kernel/binary/ast_to_binary.dart:1944:5)
#73     ReturnStatement.accept (package:kernel/ast.dart:6491:43)        
#74     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#75     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
#76     BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1803:5)
#77     Block.accept (package:kernel/ast.dart:5823:43)                  
#78     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#79     BinaryPrinter.writeOptionalNode                                 
(package:kernel/binary/ast_to_binary.dart:475:7)
#80     BinaryPrinter.visitFunctionNode                                 
(package:kernel/binary/ast_to_binary.dart:1327:5)
#81     FunctionNode.accept (package:kernel/ast.dart:2909:38)           
#82     BinaryPrinter.writeFunctionNode                                 
(package:kernel/binary/ast_to_binary.dart:389:10)
#83     BinaryPrinter.writeOptionalFunctionNode                         
(package:kernel/binary/ast_to_binary.dart:484:7)
#84     BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1203:5)
#85     Procedure.accept (package:kernel/ast.dart:2400:40)              
#86     BinaryPrinter.writeProcedureNode                                
(package:kernel/binary/ast_to_binary.dart:410:10)
#87     BinaryPrinter.writeProcedureNodeList                            
(package:kernel/binary/ast_to_binary.dart:301:7)
#88     BinaryPrinter.visitClass (package:kernel/binary/ast_to_binary.dart:1131:5)
#89     Class.accept (package:kernel/ast.dart:1379:38)                  
#90     BinaryPrinter.writeClassNode (package:kernel/binary/ast_to_binary.dart:424:10)
#91     BinaryPrinter.writeClassNodeList                                
(package:kernel/binary/ast_to_binary.dart:319:7)
#92     BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:961:5)
#93     Library.accept (package:kernel/ast.dart:607:38)                 
#94     BinaryPrinter.writeLibraryNode                                  
(package:kernel/binary/ast_to_binary.dart:403:10)
#95     BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:710:9)
#96     BinaryPrinter.writeComponentFile.<anonymous closure>            
(package:kernel/binary/ast_to_binary.dart:553:7)
#97     Timeline.timeSync (dart:developer/timeline.dart:163:22)         
#98     BinaryPrinter.writeComponentFile                                
(package:kernel/binary/ast_to_binary.dart:536:14)
#99     IncrementalSerializer.serialize                                 
(package:front_end/src/fasta/incremental_serializer.dart:308:13)
#100    IncrementalSerializer.writePackagesToSinkAndTrimComponent       
(package:front_end/src/fasta/incremental_serializer.dart:159:24)
#101    FrontendCompiler.writeDillFile                                  
(package:frontend_server/frontend_server.dart:747:31)
#102    FrontendCompiler.compile (package:frontend_server/frontend_server.dart:564:13)
<asynchronous suspension>                                               
#103    _FlutterFrontendCompiler.compile                                
(package:flutter_frontend_server/server.dart:43:22)
#104    listenAndCompile.<anonymous closure>                            
(package:frontend_server/frontend_server.dart:1201:26)
#105    _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)        
#106    _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#107    _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#108    _SinkTransformerStreamSubscription._add                         
(dart:async/stream_transformers.dart:69:11)
#109    _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#110    _StringAdapterSink.add (dart:convert/string_conversion.dart:238:11)
#111    _LineSplitterSink._addLines (dart:convert/line_splitter.dart:155:13)
#112    _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:130:5)
#113    StringConversionSinkMixin.add (dart:convert/string_conversion.dart:163:5)
#114    _SinkTransformerStreamSubscription._handleData                  
(dart:async/stream_transformers.dart:121:24)
#115    _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)        
#116    _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#117    _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#118    _SinkTransformerStreamSubscription._add                         
(dart:async/stream_transformers.dart:69:11)
#119    _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#120    _StringAdapterSink.add (dart:convert/string_conversion.dart:238:11)
#121    _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:243:7)
#122    _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:317:20)
#123    _Utf8ConversionSink.add (dart:convert/string_conversion.dart:310:5)
#124    _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
#125    _SinkTransformerStreamSubscription._handleData                  
(dart:async/stream_transformers.dart:121:24)
#126    _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)        
#127    _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#128    _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#129    _SyncStreamControllerDispatch._sendData                         
(dart:async/stream_controller.dart:808:19)
#130    _StreamController._add (dart:async/stream_controller.dart:682:7)
#131    _StreamController.add (dart:async/stream_controller.dart:624:5) 
#132    _Socket._onData (dart:io-patch/socket_patch.dart:2020:41)       
#133    _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)        
#134    _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#135    _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#136    _SyncStreamControllerDispatch._sendData                         
(dart:async/stream_controller.dart:808:19)
#137    _StreamController._add (dart:async/stream_controller.dart:682:7)
#138    _StreamController.add (dart:async/stream_controller.dart:624:5) 
#139    new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1556:33)
#140    _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1052:14)
#141    _microtaskLoop (dart:async/schedule_microtask.dart:41:21)       
#142    _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)   
#143    _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#144    _RawReceivePortImpl._handleMessage                              
(dart:isolate-patch/isolate_patch.dart:169:5)
the Dart compiler exited unexpectedly.                                  
the Dart compiler exited unexpectedly.    

@Jokergz
Copy link
Jokergz commented Aug 6, 2020

same error:

Error: Type 'DiagnosticableMixin' not found.
Error: The type 'DiagnosticableMixin' can't be mixed in.

@TahaTesser
Copy link
Member

Hi @Mecheka
Can you please provide your flutter doctor -v your flutter run --verbose, your pubspec.yaml and a complete reproducible minimal code sample
Thank you

@TahaTesser TahaTesser added dependency: dart Dart team may need to help us platform-ios iOS applications specifically customer: crowd Affects or could affect many people, though not necessarily a specific customer. c: regression It was better in the past than it is now c: crash Stack traces logged to the console waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Aug 6, 2020
@TahaTesser TahaTesser changed the title I can't run flutter version 1.20.0 [flutter 1.20] Unsupported operation: serialization of generic DartType: UnknownType(?) (UnknownType) Aug 6, 2020
@ichitaka
Copy link
ichitaka commented Aug 6, 2020

try installing this packages https://pub.dev/packages/characters.

Sadly this does also not work. I'm downgrading for now.

@devapalanisamy
Copy link
devapalanisamy commented Aug 6, 2020

If you are using flutter_svg, Please update the package to flutter_svg 0.18.0. That fixed my issue.

@ganger1
Copy link
ganger1 commented Aug 6, 2020

try installing this packages https://pub.dev/packages/characters.

Sadly this does also not work. I'm downgrading for now.

The same things happened to me. I just run command flutter create . and issue resolved.

@pcsosinski pcsosinski added the found in release: 1.20 Found to occur in 1.20 label Aug 6, 2020
@Shiba-Kar
Copy link
Shiba-Kar commented Aug 6, 2020

flutter run --verbose

logs
[ +110 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +75 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] 2ae34518b87dd891355ed6c6ea8cb68c4d52bb9d
[        ] executing: [C:\flutter/] git tag --contains HEAD
[ +372 ms] Exit code 0 from: git tag --contains HEAD
[        ] 1.20.1
[   +8 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +65 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\flutter/] git ls-remote --get-url origin
[  +45 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +85 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[  +59 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +78 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +8 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +18 ms] executing: C:\Users\shiba\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +59 ms] List of devices attached
           127.0.0.1:5555         offline transport_id:2
           emulator-5554          device product:SM-G970N model:SM_G970N device:aosp transport_id:1
[   +7 ms] C:\Users\shiba\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell getprop
[ +112 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +5 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +6 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +138 ms] Found plugin connectivity at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\connectivity-0.4.9\
[  +12 ms] Found plugin connectivity_for_web at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\connectivity_for_web-0.3.1\
[  +16 ms] Found plugin connectivity_macos at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\connectivity_macos-0.1.0+3\
[ +309 ms] Found plugin flutter_image_compress at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_image_compress-0.6.8\
[  +18 ms] Found plugin flutter_keyboard_visibility at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_keyboard_visibility-3.2.1\
[   +8 ms] Found plugin flutter_local_notifications at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_local_notifications-1.4.4+2\
[  +50 ms] Found plugin flutter_native_image at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_native_image-0.0.5+2\
[   +8 ms] Found plugin flutter_plugin_android_lifecycle at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.8\
[ +132 ms] Found plugin image_picker at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.6.7+4\
[  +17 ms] Found plugin image_picker_for_web at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker_for_web-0.1.0+1\
[  +69 ms] Found plugin path_provider_linux at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider_linux-0.0.1+2\
[  +29 ms] Found plugin phone_number at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\phone_number-0.6.2+4\
[  +23 ms] Found plugin qrscan at C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qrscan-0.2.17\
[  +18 ms] Found plugin searchable_dropdown at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\searchable_dropdown-1.1.3\
[   +5 ms] Found plugin shared_preferences at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.8\
[  +14 ms] Found plugin shared_preferences_linux at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_linux-0.0.2+1\
[   +2 ms] Found plugin shared_preferences_macos at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_macos-0.0.1+10\
[   +4 ms] Found plugin shared_preferences_web at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_web-0.1.2+7\
[  +80 ms] Found plugin connectivity at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\connectivity-0.4.9\
[   +1 ms] Found plugin connectivity_for_web at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\connectivity_for_web-0.3.1\
[   +1 ms] Found plugin connectivity_macos at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\connectivity_macos-0.1.0+3\
[  +13 ms] Found plugin flutter_image_compress at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_image_compress-0.6.8\
[   +4 ms] Found plugin flutter_keyboard_visibility at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_keyboard_visibility-3.2.1\
[  +12 ms] Found plugin flutter_local_notifications at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_local_notifications-1.4.4+2\
[   +3 ms] Found plugin flutter_native_image at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_native_image-0.0.5+2\
[  +12 ms] Found plugin flutter_plugin_android_lifecycle at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.8\
[  +14 ms] Found plugin image_picker at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.6.7+4\
[   +5 ms] Found plugin image_picker_for_web at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\image_picker_for_web-0.1.0+1\
[  +11 ms] Found plugin path_provider_linux at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\path_provider_linux-0.0.1+2\
[  +39 ms] Found plugin phone_number at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\phone_number-0.6.2+4\
[  +27 ms] Found plugin qrscan at C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\qrscan-0.2.17\
[  +13 ms] Found plugin searchable_dropdown at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\searchable_dropdown-1.1.3\
[   +2 ms] Found plugin shared_preferences at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.8\
[   +1 ms] Found plugin shared_preferences_linux at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_linux-0.0.2+1\
[   +2 ms] Found plugin shared_preferences_macos at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_macos-0.0.1+10\
[   +3 ms] Found plugin shared_preferences_web at
C:\Users\shiba\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences_web-0.1.2+7\
[  +98 ms] Generating
C:\Programming\Flutter\evolve2.0\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +28 ms] ro.hardware = android_x86
[        ] ro.build.characteristics = tablet
[  +75 ms] Starting incremental build...
[   +3 ms] Initializing file store
[   +9 ms] Skipping target: gen_localizations
[  +23 ms] complete
[  +16 ms] Launching lib\main.dart on SM G970N in debug mode...
[  +15 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names 
-Ddart.developer.causal_async_stacks=true --output-dill
C:\Users\shiba\AppData\Local\Temp\flutter_tools.5fb6fca7\flutter_tool.6e0267b3\app.dill --packages .packages
-Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root
--initialize-from-dill build\cache.dill.track.dill
[  +48 ms] executing: C:\Users\shiba\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -vtime -t 1
[  +79 ms] Exit code 0 from: C:\Users\shiba\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell -x
logcat -v time -t 1
[   +1 ms] --------- beginning of main
           08-06 13:35:58.307 W/Conscrypt( 2051):       at
           com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(:com.google.android.gms@2           02614013@20.26.14 (020700-320008519))
[  +14 ms] executing: C:\Users\shiba\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -vtime -t 1
[  +53 ms] Exit code 0 from: C:\Users\shiba\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell -x
logcat -v time -t 1
[        ] --------- beginning of main
           08-06 13:35:58.377 I/NetworkScheduler.Stats( 2051): Task
           com.google.android.gms/com.google.android.gms.pay.gcmtask.PayGcmTaskService finished executing. cause:7       
           result: 1 elapsed_millis: 63 uptime_millis: 63 exec_start_elapsed_seconds: 17 [CONTEXT service_id=218 ]       
[  +18 ms] <- compile package:evolve2/main.dart
[  +28 ms] executing: C:\Users\shiba\AppData\Local\Android\sdk\platform-tools\adb.exe version
[  +49 ms] Android Debug Bridge version 1.0.41
           Version 30.0.3-6597393
           Installed as C:\Users\shiba\AppData\Local\Android\sdk\platform-tools\adb.exe
[   +4 ms] executing: C:\Users\shiba\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[  +49 ms] Building APK
[  +24 ms] Running Gradle task 'assembleDebug'...
[   +8 ms] gradle.properties already sets `android.enableR8`
[  +22 ms] Using gradle from C:\Programming\Flutter\evolve2.0\android\gradlew.bat.
[   +1 ms] C:\Programming\Flutter\evolve2.0\android\gradlew.bat mode: 33279 rwxrwxrwx.
[  +13 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +140 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[        ] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
           OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[   +4 ms] executing: [C:\Programming\Flutter\evolve2.0\android/] C:\Programming\Flutter\evolve2.0\android\gradlew.bat   
-Pverbose=true -Ptarget-platform=android-x86 -Ptarget=C:\Programming\Flutter\evolve2.0\lib\main.dart
-Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+2069 ms] > Configure project :app
[   +3 ms] Plugin project :connectivity_macos not found. Please update settings.gradle.
[+3684 ms] > Task :app:compileFlutterBuildDebug
[   +3 ms] [ +113 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +20 ms] [  +83 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +23 ms] [        ] 2ae34518b87dd891355ed6c6ea8cb68c4d52bb9d
[   +4 ms] [        ] executing: [C:\flutter/] git tag --contains HEAD
[   +2 ms] [ +372 ms] Exit code 0 from: git tag --contains HEAD
[  +24 ms] [        ] 1.20.1
[   +2 ms] [  +10 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [  +63 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] [        ] origin/stable
[        ] [        ] executing: [C:\flutter/] git ls-remote --get-url origin
[   +1 ms] [  +45 ms] Exit code 0 from: git ls-remote --get-url origin
[  +19 ms] [        ] https://github.com/flutter/flutter.git
[   +2 ms] [  +79 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[   +1 ms] [  +49 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] [        ] stable
[   +1 ms] [  +48 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +27 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[  +21 ms] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +3 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[  +19 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +3 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +3 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +24 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[   +1 ms] [ +117 ms] Initializing file store
[        ] [  +33 ms] Skipping target: gen_localizations
[        ] [  +16 ms] kernel_snapshot: Starting due to {}
[   +1 ms] [  +81 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter
-Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --no-link-platform --packages
C:\Programming\Flutter\evolve2.0\.packages --output-dill
C:\Programming\Flutter\evolve2.0\.dart_tool\flutter_build\20b2065b75bdc4ddf343803f0ca93b92\app.dill --depfile
C:\Programming\Flutter\evolve2.0\.dart_tool\flutter_build\20b2065b75bdc4ddf343803f0ca93b92\kernel_snapshot.d
package:evolve2/main.dart
[+10868 ms] Unhandled exception:
[        ] Unsupported operation: serialization of generic DartType: UnknownType(?) (UnknownType)
[   +1 ms] #0      BinaryPrinter.defaultDartType (package:kernel/binary/ast_to_binary.dart:2231:5)
[        ] #1      UnknownType.accept (package:front_end/src/fasta/type_inference/type_schema.dart:82:14)
[  +27 ms] #2      BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[        ] #3      BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
[   +3 ms] #4      BinaryPrinter.visitInterfaceType (package:kernel/binary/ast_to_binary.dart:2069:7)
[  +19 ms] #5      InterfaceType.accept (package:kernel/ast.dart:7504:42)
[   +2 ms] #6      BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[   +1 ms] #7      BinaryPrinter.visitFutureOrType (package:kernel/binary/ast_to_binary.dart:2090:5)
[   +1 ms] #8      FutureOrType.accept (package:kernel/ast.dart:7903:42)
[        ] #9      BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[        ] #10     BinaryPrinter.visitAsExpression (package:kernel/binary/ast_to_binary.dart:1616:5)
[        ] #11     AsExpression.accept (package:kernel/ast.dart:4913:44)
[        ] #12     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[        ] #13     BinaryPrinter.visitVariableSet (package:kernel/binary/ast_to_binary.dart:1368:7)
[   +1 ms] #14     VariableSet.accept (package:kernel/ast.dart:3144:44)
[        ] #15     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[        ] #16     BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1795:5)
[   +1 ms] #17     ExpressionStatement.accept (package:kernel/ast.dart:5784:43)
[        ] #18     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[  +20 ms] #19     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
[   +1 ms] #20     BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1803:5)
[   +1 ms] #21     Block.accept (package:kernel/ast.dart:5823:43)
[        ] #22     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[        ] #23     BinaryPrinter.visitLabeledStatement (package:kernel/binary/ast_to_binary.dart:1837:5)
[        ] #24     LabeledStatement.accept (package:kernel/ast.dart:5984:43)
[        ] #25     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[        ] #26     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
[        ] #27     BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1803:5)
[        ] #28     Block.accept (package:kernel/ast.dart:5823:43)
[        ] #29     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[        ] #30     BinaryPrinter.visitTryCatch (package:kernel/binary/ast_to_binary.dart:1954:5)
[        ] #31     TryCatch.accept (package:kernel/ast.dart:6532:43)
[        ] #32     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[        ] #33     BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:475:7)
[        ] #34     BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1327:5)
[        ] #35     FunctionNode.accept (package:kernel/ast.dart:2909:38)
[  +21 ms] #36     BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:389:10)
[   +1 ms] #37     BinaryPrinter.visitFunctionDeclaration (package:kernel/binary/ast_to_binary.dart:2030:5)
[   +1 ms] #38     FunctionDeclaration.accept (package:kernel/ast.dart:6988:43)
[   +1 ms] #39     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[   +1 ms] #40     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
[        ] #41     BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1803:5)
[        ] #42     Block.accept (package:kernel/ast.dart:5823:43)
[        ] #43     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[        ] #44     BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:475:7)
[        ] #45     BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1327:5)
[        ] #46     FunctionNode.accept (package:kernel/ast.dart:2909:38)
[        ] #47     BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:389:10)
[        ] #48     BinaryPrinter.visitFunctionExpression (package:kernel/binary/ast_to_binary.dart:1742:5)
[        ] #49     FunctionExpression.accept (package:kernel/ast.dart:5535:44)
[        ] #50     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[        ] #51     BinaryPrinter.visitNamedExpression (package:kernel/binary/ast_to_binary.dart:1503:5)
[        ] #52     NamedExpression.accept (package:kernel/ast.dart:3813:38)
[  +13 ms] #53     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[   +1 ms] #54     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
[   +1 ms] #55     BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1497:5)
[   +1 ms] #56     Arguments.accept (package:kernel/ast.dart:3753:38)
[  +11 ms] #57     BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:396:10)
[   +1 ms] #58     BinaryPrinter.visitConstructorInvocation (package:kernel/binary/ast_to_binary.dart:1489:5)
[   +1 ms] #59     ConstructorInvocation.accept (package:kernel/ast.dart:4154:44)
[        ] #60     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[   +2 ms] #61     BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:475:7)
[  +13 ms] #62     BinaryPrinter.visitReturnStatement (package:kernel/binary/ast_to_binary.dart:1944:5)
[   +2 ms] #63     ReturnStatement.accept (package:kernel/ast.dart:6491:43)
[  +15 ms] #64     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[  +15 ms] #65     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
[   +2 ms] #66     BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1803:5)
[  +13 ms] #67     Block.accept (package:kernel/ast.dart:5823:43)
[   +1 ms] #68     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
[   +1 ms] #69     BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:475:7)
[  +14 ms] #70     BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1327:5)
[   +2 ms] #71     FunctionNode.accept (package:kernel/ast.dart:2909:38)
[  +12 ms] #72     BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:389:10)
[   +1 ms] #73     BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:484:7)
[   +1 ms] #74     BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1203:5)
[        ] #75     Procedure.accept (package:kernel/ast.dart:2400:40)
[  +14 ms] #76     BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:410:10)
[   +2 ms] #77     BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:301:7)
[  +13 ms] #78     BinaryPrinter.visitClass (package:kernel/binary/ast_to_binary.dart:1131:5)
[   +2 ms] #79     Class.accept (package:kernel/ast.dart:1379:38)
[  +21 ms] #80     BinaryPrinter.writeClassNode (package:kernel/binary/ast_to_binary.dart:424:10)
[   +1 ms] #81     BinaryPrinter.writeClassNodeList (package:kernel/binary/ast_to_binary.dart:319:7)
[        ] #82     BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:961:5)
[        ] #83     Library.accept (package:kernel/ast.dart:607:38)
[        ] #84     BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:403:10)
[   +1 ms] #85     BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:710:9)
[        ] #86     BinaryPrinter.writeComponentFile.<anonymous closure> (package:kernel/binary/ast_to_binary.dart:553:7) 
[        ] #87     Timeline.timeSync (dart:developer/timeline.dart:163:22)
[        ] #88     BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:536:14)
[        ] #89     IncrementalSerializer.serialize (package:front_end/src/fasta/incremental_serializer.dart:308:13)
[        ] #90     IncrementalSerializer.writePackagesToSinkAndTrimComponent
           (package:front_end/src/fasta/incremental_serializer.dart:159:24)
[        ] #91     FrontendCompiler.writeDillFile (package:frontend_server/frontend_server.dart:747:31)
[        ] #92     FrontendCompiler.compile (package:frontend_server/frontend_server.dart:564:13)
[        ] <asynchronous suspension>
[  +13 ms] #93     _FlutterFrontendCompiler.compile (package:flutter_frontend_server/server.dart:43:22)
[   +1 ms] #94     listenAndCompile.<anonymous closure> (package:frontend_server/frontend_server.dart:1201:26)
[   +1 ms] #95     _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)
[  +12 ms] #96     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
[   +1 ms] #97     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
[   +1 ms] #98     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:69:11)
[        ] #99     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
[   +1 ms] #100    _StringAdapterSink.add (dart:convert/string_conversion.dart:238:11)
[  +14 ms] #101    _LineSplitterSink._addLines (dart:convert/line_splitter.dart:155:13)
[   +2 ms] #102    _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:130:5)
[  +14 ms] #103    StringConversionSinkMixin.add (dart:convert/string_conversion.dart:163:5)
[   +2 ms] #104    _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:121:24)
[  +12 ms] #105    _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)
[   +1 ms] #106    _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
[        ] #107    _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
[   +1 ms] #108    _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:69:11)
[  +13 ms] #109    _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
[   +1 ms] #110    _StringAdapterSink.add (dart:convert/string_conversion.dart:238:11)
[   +1 ms] #111    _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:243:7)
[  +13 ms] #112    _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:317:20)
[   +1 ms] #113    _Utf8ConversionSink.add (dart:convert/string_conversion.dart:310:5)
[   +2 ms] #114    _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
[  +21 ms] #115    _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:121:24)
[   +2 ms] #116    _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)
[   +1 ms] #117    _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
[        ] #118    _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
[   +1 ms] #119    _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:808:19)
[        ] #120    _StreamController._add (dart:async/stream_controller.dart:682:7)
[        ] #121    _StreamController.add (dart:async/stream_controller.dart:624:5)
[        ] #122    _Socket._onData (dart:io-patch/socket_patch.dart:2020:41)
[        ] #123    _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)
[        ] #124    _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
[        ] #125    _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
[  +17 ms] #126    _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:808:19)
[  +16 ms] #127    _StreamController._add (dart:async/stream_controller.dart:682:7)
[  +14 ms] #128    _StreamController.add (dart:async/stream_controller.dart:624:5)
[   +2 ms] #129    new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1556:33)
[  +16 ms] #130    _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1052:14)
[  +23 ms] #131    _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
[   +1 ms] #132    _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
[   +1 ms] #133    _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
[        ] #134    _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
[  +29 ms] the Dart compiler exited unexpectedly.
[   +7 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
           #1      DefaultResidentCompiler._compile.<anonymous closure> (package:flutter_tools/src/compile.dart:748:13)  
           #2      _rootRun (dart:async/zone.dart:1182:47)
           #3      _CustomZone.run (dart:async/zone.dart:1093:19)
           #4      _CustomZone.runGuarded (dart:async/zone.dart:997:7)
           #5      _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:410:13)
           #6      _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:420:15)
           #7      _BufferingStreamSubscription._close (dart:async/stream_impl.dart:305:7)
           #8      _SinkTransformerStreamSubscription._close (dart:async/stream_transformers.dart:97:11)
           #9      _EventSinkWrapper.close (dart:async/stream_transformers.dart:23:11)
           #10     _StringAdapterSink.close (dart:convert/string_conversion.dart:251:11)
           #11     _LineSplitterSink.close (dart:convert/line_splitter.dart:139:11)
           #12     _SinkTransformerStreamSubscription._handleDone (dart:async/stream_transformers.dart:142:24)
           #13     _rootRun (dart:async/zone.dart:1182:47)
           #14     _CustomZone.run (dart:async/zone.dart:1093:19)
           #15     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
           #16     _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:410:13)
           #17     _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:420:15)
           #18     _BufferingStreamSubscription._close (dart:async/stream_impl.dart:305:7)
           #19     _SinkTransformerStreamSubscription._close (dart:async/stream_transformers.dart:97:11)
           #20     _EventSinkWrapper.close (dart:async/stream_transformers.dart:23:11)
           #21     _StringAdapterSink.close (dart:convert/string_conversion.dart:251:11)
           #22     _Utf8ConversionSink.close (dart:convert/string_conversion.dart:305:20)
           #23     _ConverterStreamEventSink.close (dart:convert/chunked_conversion.dart:82:18)
           #24     _SinkTransformerStreamSubscription._handleDone (dart:async/stream_transformers.dart:142:24)
           #25     _rootRun (dart:async/zone.dart:1182:47)
           #26     _CustomZone.run (dart:async/zone.dart:1093:19)
           #27     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
           #28     _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:410:13)
           #29     _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:420:15)
           #30     _BufferingStreamSubscription._close (dart:async/stream_impl.dart:305:7)
           #31     _SyncStreamControllerDispatch._sendDone (dart:async/stream_controller.dart:816:19)
           #32     _StreamController._closeUnchecked (dart:async/stream_controller.dart:671:7)
           #33     _StreamController.close (dart:async/stream_controller.dart:664:5)
           #34     _Socket._onData (dart:io-patch/socket_patch.dart:2027:21)
           #35     _rootRunUnary (dart:async/zone.dart:1206:13)
           #36     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #37     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
           #38     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
           #39     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
           #40     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:808:19)
           #41     _StreamController._add (dart:async/stream_controller.dart:682:7)
           #42     _StreamController.add (dart:async/stream_controller.dart:624:5)
           #43     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1563:35)
           #44     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1045:18)
           #45     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
           #46     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
           #47     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
           #48     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)


[  +70 ms] ensureAnalyticsSent: 1ms
[  +10 ms] Running shutdown hooks
[   +2 ms] Shutdown hook priority 4
[  +15 ms] Shutdown hooks complete
[   +3 ms] the Dart compiler exited unexpectedly.
[  +12 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
           #1      DefaultResidentCompiler._compile.<anonymous closure> (package:flutter_tools/src/compile.dart:748:13)  
           #2      _rootRun (dart:async/zone.dart:1182:47)
           #3      _CustomZone.run (dart:async/zone.dart:1093:19)
           #4      _CustomZone.runGuarded (dart:async/zone.dart:997:7)
           #5      _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:410:13)
           #6      _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:420:15)
           #7      _BufferingStreamSubscription._close (dart:async/stream_impl.dart:305:7)
           #8      _SinkTransformerStreamSubscription._close (dart:async/stream_transformers.dart:97:11)
           #9      _EventSinkWrapper.close (dart:async/stream_transformers.dart:23:11)
           #10     _StringAdapterSink.close (dart:convert/string_conversion.dart:251:11)
           #11     _LineSplitterSink.close (dart:convert/line_splitter.dart:139:11)
           #12     _SinkTransformerStreamSubscription._handleDone (dart:async/stream_transformers.dart:142:24)
           #13     _rootRun (dart:async/zone.dart:1182:47)
           #14     _CustomZone.run (dart:async/zone.dart:1093:19)
           #15     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
           #16     _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:410:13)
           #17     _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:420:15)
           #18     _BufferingStreamSubscription._close (dart:async/stream_impl.dart:305:7)
           #19     _SinkTransformerStreamSubscription._close (dart:async/stream_transformers.dart:97:11)
           #20     _EventSinkWrapper.close (dart:async/stream_transformers.dart:23:11)
           #21     _StringAdapterSink.close (dart:convert/string_conversion.dart:251:11)
           #22     _Utf8ConversionSink.close (dart:convert/string_conversion.dart:305:20)
           #23     _ConverterStreamEventSink.close (dart:convert/chunked_conversion.dart:82:18)
           #24     _SinkTransformerStreamSubscription._handleDone (dart:async/stream_transformers.dart:142:24)
           #25     _rootRun (dart:async/zone.dart:1182:47)
           #26     _CustomZone.run (dart:async/zone.dart:1093:19)
           #27     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
           #28     _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:410:13)
           #29     _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:420:15)
           #30     _BufferingStreamSubscription._close (dart:async/stream_impl.dart:305:7)
           #31     _SyncStreamControllerDispatch._sendDone (dart:async/stream_controller.dart:816:19)
           #32     _StreamController._closeUnchecked (dart:async/stream_controller.dart:671:7)
           #33     _StreamController.close (dart:async/stream_controller.dart:664:5)
           #34     _Socket._onData (dart:io-patch/socket_patch.dart:2027:21)
           #35     _rootRunUnary (dart:async/zone.dart:1206:13)
           #36     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #37     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
           #38     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
           #39     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
           #40     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:808:19)
           #41     _StreamController._add (dart:async/stream_controller.dart:682:7)
           #42     _StreamController.add (dart:async/stream_controller.dart:624:5)
           #43     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1563:35)
           #44     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1045:18)
           #45     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
           #46     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
           #47     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
           #48     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)


[  +66 ms] ensureAnalyticsSent: 0ms
[        ] Running shutdown hooks
[        ] Shutdown hooks complete
[   +1 ms] exiting with code 1

@pcsosinski
Copy link

/cc @a-siva seeing this issue on 1.20, can you take a look?

@ichitaka
Copy link
ichitaka commented Aug 7, 2020

I have solved my issue, thanks for the help guys.

  • Upgrade to 1.20.1 -> Not solved
  • flutter create . -> Not solved
  • Upgrade of flutter_svg -> solved

Sadly I only did all the steps, so I can't say 100 % if it was the single package incompatibility. But in general I missed out on the good practice to upgrade my outdated packages.

@m4kz
Copy link
m4kz commented Aug 7, 2020

same issue:

logs
Running pod install...
Unhandled exception:
Unsupported operation: serialization of generic DartType: UnknownType(?) (UnknownType)
#0      BinaryPrinter.defaultDartType (package:kernel/binary/ast_to_binary.dart:2231:5)
#1      UnknownType.accept (package:front_end/src/fasta/type_inference/type_schema.dart:82:14)
#2      BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#3      BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
#4      BinaryPrinter.visitInterfaceType (package:kernel/binary/ast_to_binary.dart:2069:7)
#5      InterfaceType.accept (package:kernel/ast.dart:7504:42)
#6      BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#7      BinaryPrinter.visitFutureOrType (package:kernel/binary/ast_to_binary.dart:2090:5)
#8      FutureOrType.accept (package:kernel/ast.dart:7903:42)
#9      BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#10     BinaryPrinter.visitAsExpression (package:kernel/binary/ast_to_binary.dart:1616:5)
#11     AsExpression.accept (package:kernel/ast.dart:4913:44)
#12     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#13     BinaryPrinter.visitVariableSet (package:kernel/binary/ast_to_binary.dart:1368:7)
#14     VariableSet.accept (package:kernel/ast.dart:3144:44)
#15     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#16     BinaryPrinter.visitExpressionStatement (package:kernel/binary/ast_to_binary.dart:1795:5)
#17     ExpressionStatement.accept (package:kernel/ast.dart:5784:43)
#18     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#19     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
#20     BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1803:5)
#21     Block.accept (package:kernel/ast.dart:5823:43)
#22     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#23     BinaryPrinter.visitLabeledStatement (package:kernel/binary/ast_to_binary.dart:1837:5)
#24     LabeledStatement.accept (package:kernel/ast.dart:5984:43)
#25     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#26     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
#27     BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1803:5)
#28     Block.accept (package:kernel/ast.dart:5823:43)
#29     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#30     BinaryPrinter.visitTryCatch (package:kernel/binary/ast_to_binary.dart:1954:5)
#31     TryCatch.accept (package:kernel/ast.dart:6532:43)
#32     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#33     BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:475:7)
#34     BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1327:5)
#35     FunctionNode.accept (package:kernel/ast.dart:2909:38)
#36     BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:389:10)
#37     BinaryPrinter.visitFunctionDeclaration (package:kernel/binary/ast_to_binary.dart:2030:5)
#38     FunctionDeclaration.accept (package:kernel/ast.dart:6988:43)
#39     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#40     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
#41     BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1803:5)
#42     Block.accept (package:kernel/ast.dart:5823:43)
#43     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#44     BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:475:7)
#45     BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1327:5)
#46     FunctionNode.accept (package:kernel/ast.dart:2909:38)
#47     BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:389:10)
#48     BinaryPrinter.visitFunctionExpression (package:kernel/binary/ast_to_binary.dart:1742:5)
#49     FunctionExpression.accept (package:kernel/ast.dart:5535:44)
#50     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#51     BinaryPrinter.visitNamedExpression (package:kernel/binary/ast_to_binary.dart:1503:5)
#52     NamedExpression.accept (package:kernel/ast.dart:3813:38)
#53     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#54     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
#55     BinaryPrinter.visitArguments (package:kernel/binary/ast_to_binary.dart:1497:5)
#56     Arguments.accept (package:kernel/ast.dart:3753:38)
#57     BinaryPrinter.writeArgumentsNode (package:kernel/binary/ast_to_binary.dart:396:10)
#58     BinaryPrinter.visitConstructorInvocation (package:kernel/binary/ast_to_binary.dart:1489:5)
#59     ConstructorInvocation.accept (package:kernel/ast.dart:4154:44)
#60     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#61     BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:475:7)
#62     BinaryPrinter.visitReturnStatement (package:kernel/binary/ast_to_binary.dart:1944:5)
#63     ReturnStatement.accept (package:kernel/ast.dart:6491:43)
#64     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#65     BinaryPrinter.writeNodeList (package:kernel/binary/ast_to_binary.dart:292:7)
#66     BinaryPrinter.visitBlock (package:kernel/binary/ast_to_binary.dart:1803:5)
#67     Block.accept (package:kernel/ast.dart:5823:43)
#68     BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:382:10)
#69     BinaryPrinter.writeOptionalNode (package:kernel/binary/ast_to_binary.dart:475:7)
#70     BinaryPrinter.visitFunctionNode (package:kernel/binary/ast_to_binary.dart:1327:5)
#71     FunctionNode.accept (package:kernel/ast.dart:2909:38)
#72     BinaryPrinter.writeFunctionNode (package:kernel/binary/ast_to_binary.dart:389:10)
#73     BinaryPrinter.writeOptionalFunctionNode (package:kernel/binary/ast_to_binary.dart:484:7)
#74     BinaryPrinter.visitProcedure (package:kernel/binary/ast_to_binary.dart:1203:5)
#75     Procedure.accept (package:kernel/ast.dart:2400:40)
#76     BinaryPrinter.writeProcedureNode (package:kernel/binary/ast_to_binary.dart:410:10)
#77     BinaryPrinter.writeProcedureNodeList (package:kernel/binary/ast_to_binary.dart:301:7)
#78     BinaryPrinter.visitClass (package:kernel/binary/ast_to_binary.dart:1131:5)
#79     Class.accept (package:kernel/ast.dart:1379:38)
#80     BinaryPrinter.writeClassNode (package:kernel/binary/ast_to_binary.dart:424:10)
#81     BinaryPrinter.writeClassNodeList (package:kernel/binary/ast_to_binary.dart:319:7)
#82     BinaryPrinter.visitLibrary (package:kernel/binary/ast_to_binary.dart:961:5)
#83     Library.accept (package:kernel/ast.dart:607:38)
#84     BinaryPrinter.writeLibraryNode (package:kernel/binary/ast_to_binary.dart:403:10)
#85     BinaryPrinter.writeLibraries (package:kernel/binary/ast_to_binary.dart:710:9)
#86     BinaryPrinter.writeComponentFile.<anonymous closure> (package:kernel/binary/ast_to_binary.dart:553:7)
#87     Timeline.timeSync (dart:developer/timeline.dart:163:22)
#88     BinaryPrinter.writeComponentFile (package:kernel/binary/ast_to_binary.dart:536:14)
#89     IncrementalSerializer.serialize (package:front_end/src/fasta/incremental_serializer.dart:308:13)
#90     IncrementalSerializer.writePackagesToSinkAndTrimComponent (package:front_end/src/fasta/incremental_serializer.dart:159:24)
#91     FrontendCompiler.writeDillFile (package:frontend_server/frontend_server.dart:747:31)
#92     FrontendCompiler.compile (package:frontend_server/frontend_server.dart:564:13)
<asynchronous suspension>
#93     _FlutterFrontendCompiler.compile (package:flutter_frontend_server/server.dart:43:22)
#94     listenAndCompile.<anonymous closure> (package:frontend_server/frontend_server.dart:1201:26)
#95     _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)
#96     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#97     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#98     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:69:11)
#99     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#100    _StringAdapterSink.add (dart:convert/string_conversion.dart:238:11)
#101    _LineSplitterSink._addLines (dart:convert/line_splitter.dart:155:13)
#102    _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:130:5)
#103    StringConversionSinkMixin.add (dart:convert/string_conversion.dart:163:5)
#104    _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:121:24)
#105    _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)
#106    _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#107    _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#108    _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:69:11)
#109    _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#110    _StringAdapterSink.add (dart:convert/string_conversion.dart:238:11)
#111    _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:243:7)
#112    _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:317:20)
#113    _Utf8ConversionSink.add (dart:convert/string_conversion.dart:310:5)
#114    _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
#115    _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:121:24)
#116    _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)
#117    _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#118    _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#119    _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:808:19)
#120    _StreamController._add (dart:async/stream_controller.dart:682:7)
#121    _StreamController.add (dart:async/stream_controller.dart:624:5)
#122    _Socket._onData (dart:io-patch/socket_patch.dart:2020:41)
#123    _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)
#124    _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#125    _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#126    _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:808:19)
#127    _StreamController._add (dart:async/stream_controller.dart:682:7)
#128    _StreamController.add (dart:async/stream_controller.dart:624:5)
#129    new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1556:33)
#130    _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1052:14)
#131    _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#132    _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#133    _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#134    _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.
`

`[✓] Flutter (Channel stable, 1.20.1, on Mac OS X 10.15.6 19G73, locale en-GB)
    • Flutter version 1.20.1 at /Users/maximilianomoraga/Documents/Development/flutter
    • Framework revision 2ae34518b8 (2 days ago), 2020-08-05 19:53:19 -0700
    • Engine revision c8e3b94853
    • Dart version 2.9.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/maximilianomoraga/Library/Android/sdk
    • Platform android-29, build-tools 29.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.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.8.4

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (1 available)
    • maximiliano’s iPhone (mobile) • 00008030-001E29693692802E • ios • iOS 13.6

• No issues found!
Process finished with exit code 0`

@droid2015
Copy link

upgrade flutter_svg: ^0.18.0 then build success

@Shiba-Kar
Copy link

@Morena96 and @mepadron which packages are you using?

@mepadron
Copy link
mepadron commented Aug 8, 2020

frend @Morena96
dependencies:
flutter:
sdk: flutter

cupertino_icons: ^0.1.2
animate_do:
google_sign_in: ^4.1.4
firebase_auth:
cloud_firestore: ^0.13.4+2
mapbox_gl:
http:
flutter_typeahead:
geolocation:
flutter_facebook_login: ^3.0.0
url_launcher: ^5.4.5
connectivity: ^0.4.8+2
flutter_speed_dial: ^1.2.5
intl: ^0.16.1
audioplayers: ^0.15.1

@Shiba-Kar
Copy link

flutter_typeahead this package may be the culprit. Just try to remove this package.

@mepadron
Copy link
mepadron commented Aug 8, 2020

Thanks @Shiba-Kar but and if I need this package, how would I do in that case?

@Shiba-Kar
Copy link
Shiba-Kar commented Aug 8, 2020

Thanks @Shiba-Kar but and if I need this package, how would I do in that case?

Just check does that works and after you can report to the respective package maintainer.The culprit is one of the package and there depended packages.

@m4kz
Copy link
m4kz commented Aug 8, 2020

I have these packages(i have tried upgrading to last versions):

cupertino_icons: ^0.1.3
flutter_map: 0.10.1+1
flutter_map_marker_cluster: 0.2.8
preferences: ^5.2.0
flutter_datetime_picker: ^1.3.8
image_picker: 0.6.7+4
location: 3.0.2
latlong: ^0.6.1
http: ^0.12.2
json_annotation: ^3.0.1
url_launcher: 5.5.0
percent_indicator: ^2.1.5
f_logs: ^1.2.2
page_indicator: ^0.3.0
cached_network_image: 2.2.0+1
carousel_slider: ^1.4.1
photo_view: ^0.9.2
rxdart: ^0.24.1
flutter_typeahead: 1.8.7
equatable: ^1.2.3
credit_card_validator: ^0.0.2
intl: ^0.16.1
package_info: ^0.4.1
uni_links: 0.4.0
share: ^0.6.4+3
dash_chat: 1.1.11
enum_to_string: ^1.0.9
auto_size_text: ^2.1.0
flutter_rating_bar: ^3.0.1+1
uuid: 2.2.0
flutter_staggered_grid_view: ^0.3.2

#FIREBASE
firebase_analytics: ^5.0.15
google_sign_in: 4.5.1
flutter_facebook_login: 3.0.0
firebase_storage: 3.1.6
cloud_functions: 0.5.0
firebase_messaging: 6.0.16
firebase_auth: 0.16.1
cloud_firestore: 0.13.7
firebase_core: 0.4.5

@KohlsAdrian
Copy link

Maybe this is related with this issues too...

@AlirezaDaryani
Copy link

same problem here ...

@thoffart
Copy link
thoffart commented Aug 9, 2020

Same problem here, after I removed the package flutter_typeahead from my pubspec the issue was solved. For now, I opened an issue on the flutter_typeahead repo here AbdulRahmanAlHamali/flutter_typeahead#226, but I am not pretty sure if the problem is with the package because of the issue on dart-lang/sdk#42615.

@digitaljoni
Copy link

for me, the error was caused by the flutter_svg... even though the project doesn't have this package... one of the packages uses it as a dependency. so adding flutter_svg: ^0.18.0 to pubspec.yaml helped.

@a-siva
Copy link
Contributor
a-siva commented Aug 10, 2020

This error was fixed by this commit in the Dart repo dart-lang/sdk@ac4de98
The fix should be in Dart 2.10

@thoffart
Copy link

@OllyDixon This change in the podfile was made to support plugins that do not support the iOS platform. You can follow the problem here #45197 and I recommend you just generate a new podfile and copy your modifications there, this is what I did and had no problems. By the way, this is not the problem with this issue and flutter is on constant evolution.

@ollyde
Copy link
ollyde commented Aug 11, 2020

@thoffart "This change in the PodFile was made to support plugins that do not support the iOS platform"

What does that even mean? 99.9% of the developers using PodFile on Flutter are developing for iOS... All this change did was cost us developers days and thousands of dollars. Some flutter packages have not been updated in years, what are we supposed to do there? Some of them are key and commonly used packages.

We actually tried that, we regenerated the PodFile and tried to put back in the custom code throughout 31 apps that we manage and maintain. No luck, we can't update :-/ sucks.

@thoffart
Copy link

@OllyDixon you can open a new Issue to address that, I believe that just saying that don't go down the React-Native route and 99.9% of the developers using PodFile on Flutter are developing for iOS are misleading and doesn't help anybody. Flutter is focused on developing not only on ios, but also on macos. Anyway I hope you can solve your problem, and let's just finish the discussion here because already became off-topic.

@illukinati
Copy link

@OllyDixon umm... I think you are exaggerating the problem. I mean, you can do the downgrade into 1.17 for now, and waiting for the next update. Be patience, be smart.

@ollyde
Copy link
ollyde commented Aug 11, 2020

@illukinati @thoffart fair enough I'm just frustrated when I see X framework become popular over the last decade to be ruined every time by over-engineering.

@illukinati
Copy link

@OllyDixon I can say Flutter won't be the same like React-Native. Trust me, it will be getting better. For now, my best advice is just waiting, do the downgrade and you won't face any problem.

@KohlsAdrian
Copy link
KohlsAdrian commented Aug 11, 2020

@OllyDixon umm... I think you are exaggerating the problem. I mean, you can do the downgrade into 1.17 for now, and waiting for the next update. Be patience, be smart.

Agreed 1000x
I downgraded to 1.17.5 because is a money maker for me as I work with multiple plugins
I spent 3 days in something that still has no answer
So downgrade, move on, and keep working.
I love new updates, but when there is no solution, rollback and work with stable working builds

@pcsosinski
Copy link

this issue was fixed in dart-lang/sdk#42615 and will be cherrypicked, so marking it as closed

@nwoswo
Copy link
nwoswo commented Aug 12, 2020

I have same issue but, I resolved with
flutter clean
flutter packagest get

is work for me

@ggichure
Copy link

to anyone coming here the issue has been fixed https://github.com/flutter/flutter/wiki/Hotfixes-to-the-Stable-Channel

@pedromassangocode pedromassangocode removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Oct 21, 2020
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: crash Stack traces logged to the console c: regression It was better in the past than it is now customer: crowd Affects or could affect many people, though not necessarily a specific customer. dependency: dart Dart team may need to help us found in release: 1.20 Found to occur in 1.20 platform-ios iOS applications specifically
Projects
None yet
Development

No branches or pull requests