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

Compile failed #61

Closed
wangbo4020 opened this issue Jun 15, 2021 · 2 comments
Closed

Compile failed #61

wangbo4020 opened this issue Jun 15, 2021 · 2 comments

Comments

@wangbo4020
Copy link

run flutter pub upgrade then flutter build apk --profile --flavor offical

flutter_contact: 0.8.1+2
Flutter Version: Any version.


/C:/Users/Dylan/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_contact-0.8.1+2/lib/contact.dart:306:12: Error: The argument type 'Iterable<Item>' can't be assigned to the parameter type 'List<Item>?'.
 - 'Iterable' is from 'dart:core'.
 - 'Item' is from 'package:flutter_contact/contact.dart' ('/C:/Users/Dylan/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_contact-0.8.1+2/lib/contact.dart').
 - 'List' is from 'dart:core'.
          .notNull(),
           ^
/C:/Users/Dylan/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_contact-0.8.1+2/lib/contact.dart:308:12: Error: The argument type 'Iterable<Item>' can't be assigned to the parameter type 'List<Item>?'.
 - 'Iterable' is from 'dart:core'.
 - 'Item' is from 'package:flutter_contact/contact.dart' ('/C:/Users/Dylan/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_contact-0.8.1+2/lib/contact.dart').
 - 'List' is from 'dart:core'.
          .notNull(),
           ^
/C:/Users/Dylan/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_contact-0.8.1+2/lib/contact.dart:313:12: Error: The argument type 'Iterable<Item>' can't be assigned to the parameter type 'List<Item>?'.
 - 'Iterable' is from 'dart:core'.
 - 'Item' is from 'package:flutter_contact/contact.dart' ('/C:/Users/Dylan/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_contact-0.8.1+2/lib/contact.dart').
 - 'List' is from 'dart:core'.
          .notNull(),
           ^
/C:/Users/Dylan/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_contact-0.8.1+2/lib/contact.dart:316:9: Error: The argument type 'Iterable<ContactDate>' can't be assigned to the parameter type 'List<ContactDate>?'.
 - 'Iterable' is from 'dart:core'.
 - 'ContactDate' is from 'package:flutter_contact/contact.dart' ('/C:/Users/Dylan/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_contact-0.8.1+2/lib/contact.dart').
 - 'List' is from 'dart:core'.
      ].notNull(),
        ^
/C:/Users/Dylan/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_contact-0.8.1+2/lib/contact.dart:320:9: Error: The argument type 'Iterable<PostalAddress>' can't be assigned to the parameter type 'List<PostalAddress>?'.
 - 'Iterable' is from 'dart:core'.
 - 'PostalAddress' is from 'package:flutter_contact/contact.dart' ('/C:/Users/Dylan/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_contact-0.8.1+2/lib/contact.dart').
 - 'List' is from 'dart:core'.
      ].notNull(),
        ^
/C:/Users/Dylan/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_contact-0.8.1+2/lib/contact.dart:561:7: Error: A value of type 'Iterable<Map<String, String>>' can't be returned from a function with return type 'List<Map<Stri
ng, String>>'.
 - 'Iterable' is from 'dart:core'.
 - 'Map' is from 'dart:core'.
 - 'List' is from 'dart:core'.
    ].notNull();
      ^


FAILURE: Build failed with an exception.

* Where:
Script 'D:\Development\Flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1035

* What went wrong:
Execution failed for task ':app:compileFlutterBuildOfficalProfile'.
> Process 'command 'D:\Development\Flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1


@wangbo4020
Copy link
Author

If I want run, should write under code to pubspec.yaml

dependency_overrides:
  dartxx: 0.4.4+6
  flexidate: 0.4.5-nullsafety.2

@ericmartineau
Copy link
Contributor

Fixed ^0.9.1+5

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

No branches or pull requests

2 participants