Skip to content
New issue

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

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

Already on GitHub? # to your account

Compilation Error #54

Open
madhurgupta10 opened this issue Aug 11, 2019 · 2 comments
Open

Compilation Error #54

madhurgupta10 opened this issue Aug 11, 2019 · 2 comments

Comments

@madhurgupta10
Copy link

Getting compilation error on running the app in android studio on windows 10

Logs

C:\Users\madhu\Desktop\commons>flutter run -t lib/main_beta.dart
Launching lib/main_beta.dart on Google in debug mode...
Initializing gradle...                                              1.0s
Resolving dependencies...                                           7.9s

Compiler message:
file:///C:/Users/madhu/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_stetho-0.2.2/lib/src/http_client_response.dart:4:7: Error: The non-abstract class
'StethoHttpClientResponse' is missing implementations for these members:
 - HttpClientResponse.compressionState
Try to either
 - provide an implementation,
 - inherit an implementation from a superclass or mixin,
 - mark the class as abstract, or
 - provide a 'noSuchMethod' implementation.

class StethoHttpClientResponse extends StreamView<List<int>>
      ^^^^^^^^^^^^^^^^^^^^^^^^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:1967:42: Context: 'HttpClientResponse.compressionState' is defined here.
  HttpClientResponseCompressionState get compressionState;
                                         ^^^^^^^^^^^^^^^^
file:///C:/Users/madhu/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_map-0.5.5+2/lib/src/layer/mbtiles/mbtiles_image_provider.dart:93:31: Error: The ar
gument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///D:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
        informationCollector: (StringBuffer information) {
                              ^
file:///C:/Users/madhu/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_map-0.5.5+2/lib/src/layer/overlay_image_layer.dart:40:27: Error: The argument type
 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
 - 'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/packages/flutter/lib/src/painting/image_stream.dart').
 - 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/packages/flutter/lib/src/painting/image_stream.dart').
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
    stream.removeListener(listener);
                          ^
file:///C:/Users/madhu/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_map-0.5.5+2/lib/src/layer/overlay_image_layer.dart:43:22: Error: The argument type
 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
 - 'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/packages/flutter/lib/src/painting/image_stream.dart').
 - 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/packages/flutter/lib/src/painting/image_stream.dart').
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
  stream.addListener(listener);
                     ^
file:///C:/Users/madhu/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_image-1.0.0/lib/network.dart:75:31: Error: The argument type 'Null Function(String
Buffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///D:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
        informationCollector: (StringBuffer information) {
                              ^
file:///C:/Users/madhu/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flutter_image-1.0.0/lib/network.dart:168:65: Error: The argument type 'String' can't be as
signed to the parameter type 'DiagnosticsNode'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///D:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
      context: '$runtimeType failed to load ${instructions.uri}',
                                                                ^
Compiler failed on C:\Users\madhu\Desktop\commons\lib/main_beta.dart
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        17.4s
Gradle task assembleDebug failed with exit code 1

@asimsharf
Copy link

Did you just fix this issue?

@madhurgupta10
Copy link
Author

@asimsharf The issue is still there. @ashishkumar468 @maskaravivek Any Suggestions?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants