Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

flutter run --profile (it show message below) #50

Closed
Nak9009 opened this issue Jul 29, 2019 · 4 comments
Closed

flutter run --profile (it show message below) #50

Nak9009 opened this issue Jul 29, 2019 · 4 comments

Comments

@Nak9009
Copy link

Nak9009 commented Jul 29, 2019

Compiler message:
cloud_music_api/lib/src/util/request.dart:117:51: Error: The argument type 'Utf8Decoder' can't be assigned to the parameter type 'StreamTransformer<Uint8List, dynamic>'.

  • 'Utf8Decoder' is from 'dart:convert'.
  • 'StreamTransformer' is from 'dart:async'.
  • 'Uint8List' is from 'dart:typed_data'.
    Try changing the type of the parameter, or casting the argument to 'StreamTransformer<Uint8List, dynamic>'.
    final content = await response.transform(utf8.decoder).join();
    ^
    Compiler terminated unexpectedly.
    Running Gradle task 'assembleProfile'...
    Running Gradle task 'assembleProfile'... Done 9.4s
    Gradle task assembleProfile failed with exit code 1
@boyan01
Copy link
Owner

boyan01 commented Jul 29, 2019

What is your flutter version ?

how about update flutter version to latest stable version - 1.7.8+hotfix.3?

@Nak9009
Copy link
Author

Nak9009 commented Jul 29, 2019

Im using Flutter 1.8.2.

@Nak9009
Copy link
Author

Nak9009 commented Jul 29, 2019

It working now when im trying downgrade to 1.7.8+hotfix.3

@boyan01
Copy link
Owner

boyan01 commented Jul 29, 2019

ok, that's fine.

@boyan01 boyan01 closed this as completed Jul 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants