首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何为linux arm构建frontend_server.dart.snapshot?

如何为linux arm构建frontend_server.dart.snapshot?
EN

Stack Overflow用户
提问于 2020-08-24 23:39:02
回答 1查看 289关注 0票数 0

有人知道如何为linux arm/arm64构建frontend_server.dart.snapshot吗?

源代码https://github.com/flutter/engine/tree/master/flutter_frontend_server

颤动引擎版本v1.20.1

dart-sdk版本

代码语言:javascript
运行
复制
Dart SDK version: 2.9.0 (stable) (Fri Jul 31 10:59:48 2020 +0200) on "linux_x64"

我应该这样做吗?

代码语言:javascript
运行
复制
/workspace/engine/src/flutter/flutter_frontend_server$ /workspace/dart-sdk/bin/dart --snapshot-kind=kernel --snapshot=frontend_server.dart.snapshot --packages=.packages   bin/starter.dart 

下面的错误

代码语言:javascript
运行
复制
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:20:24: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
    {int Function(T, T)? compare}) {
                       ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:50:67: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
int lowerBound<T>(List<T> sortedList, T value, {int Function(T, T)? compare}) {
                                                                  ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:70:44: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
void shuffle(List list, [int start = 0, int? end]) {
                                           ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:84:44: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
void reverse(List list, [int start = 0, int? end]) {
                                           ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:115:24: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
    {int Function(T, T)? compare, int start = 0, int? end}) {
                       ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:115:53: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
    {int Function(T, T)? compare, int start = 0, int? end}) {
                                                    ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:159:24: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
    {int start = 0, int? end, int Function(T, T)? compare}) {
                       ^
../../third_party/dart/third_party/pkg/collection/lib/src/algorithms.dart:159:49: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
    {int start = 0, int? end, int Function(T, T)? compare}) {
                                                ^
../../third_party/dart/third_party/pkg/collection/lib/src/canonicalized_map.dart:18:25: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
  final bool Function(K)? _isValidKeyFn;
                        ^
../../third_party/dart/third_party/pkg/collection/lib/src/canonicalized_map.dart:31:28: Error: Null safety features are disabled for this library.
Try removing the `@dart=` annotation or setting the language version higher.
      {bool Function(K key)? isValidKey})

期待!谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-08-28 15:17:05

空的安全特性是一个突破性的变化。我通过将git重置到更早的版本修复了这个问题。示例:将src/third_party/dart/third_party/pkg/collection更改为标记1.14.13 git reset 00540dce43a9bc778bfa55935a182799ff00044d记住对所有修改后的文件执行git checkout操作。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63564243

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档